Hi,
I’m new to Move and following this tutorial, but somehow I’m unable to execute this script. I’m using move-cli
from the latest master branch.
script {
// Import the Debug module published at account address 0x1.
// 0x1 is shorthand for the fully qualified address
// 0x00000000000000000000000000000001.
use 0x1::Debug;
const ONE: u64 = 1;
fun main(x: u64) {
let sum = x + ONE;
Debug::print(&sum)
}
}
This is the command I’m using when trying to run the script:
move-cli run demo1/src/scripts/script1.move
This is the error message I get:
error:
┌── demo1/src/scripts/script1.move:5:9 ───
│
5 │ use 0x1::Debug;
│ ^^^^^^^^^^ Invalid 'use'. Unbound module: '0x1::Debug'
│
error:
┌── demo1/src/scripts/script1.move:11:9 ───
│
11 │ Debug::print(&sum)
│ ^^^^^ Unbound module alias 'Debug'
│
Regards,