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?
superuserinnamed-addresses hello_blockchain=superusershould be an actual address like0x123456, you can create a new address byaptos init.