-
Originally asked on stack overflow. I have published a module. It has a function which publishes another module. When I try to call this function the transaction commits with error My code uses I retreive the metadata and code by running these commands: Here It is said that the VM does this, when a module is published: Check that the module address and the sender address are the same: This check verifies that the publisher is the account that will eventually hold the module. If the two addresses do not match, an error with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Check Move.toml to make sure the named address where the module is deployed at matches that of the resource account you created. The |
Beta Was this translation helpful? Give feedback.
Check Move.toml to make sure the named address where the module is deployed at matches that of the resource account you created.
The
account::create_resource_account
returns the same account for the same parameters. Needed to run the function once (in tests) and put the created account in Move.toml