move代码:
script {
use std::debug;
use 0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12::scripts;
const ONE: u64 = 1;
fun debug_script(x:u64 , y:bool ,addr:address) {
let sum = x + ONE;
debug::print(&sum);
debug::print(&y);
debug::print(&addr);
}
}
说明: testnet上 0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12 这个地址下的scripts模块是public entry
但是编译时一直报错
error[E03002]: unbound module
3 │ use 0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12::scripts;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Invalid 'use'. Unbound module: '0x190D44266241744264B964A37B8F09863167A12D3E70CDA39376CFB4E3561E12::scripts'