I have been following https://aptos.dev/move/move-on-aptos/cli/#profiling-gas-usage and tried to run
aptos move compile --package-dir aptos-move/move-examples/hello_blockchain/ --named-addresses hello_blockchain=superuser
I got the following:
error: invalid value 'hello_blockchain=superuser' for '--named-addresses <NAMED_ADDRESSES>': Invalid arguments: Profile superuser not found
Why is that the case?
superuser
innamed-addresses hello_blockchain=superuser
should be an actual address like0x123456
, you can create a new address byaptos init
.