I am new to the SUI Client PTB CLI and facing the following: I wrote a simple Move script minting an NFT (just one entry fun). The code builds fine, tests fine and executes succesfully on either the SuiScan interface or with SUI CLI. However, when I try to publish it with the PTB command
sui client ptb –publish “.”
I get the following error
Encountered error when building PTB:
× Error when processing PTB
╭────
1 │ --publish .
· ─────┬─────
· ╰── Failed to publish the Move module(s), reason: Modules must all have 0x0 as their addresses. Violated by module ModuleId { address: 318a59ccf6a47e2c8ae747d0d05940e1aecde93a6b19ffece1d55f4b95e871af, name: Identifier("myptb") }
╰────
I anyone has any clue on what gives, pls be kind enough to inform.
I thank you in advance.
P.S. I run the command from the folder w/ the sources subdir and the move.toml file.