"Simulation failed with status: MODULE_ADDRESS_DOES_NOT_MATCH_SENDER" Getting this error when publishing on testnet #364
-
Discord user IDNo response Describe your question in detail.The contract works fine with --dev, however when that flag is removed, this kind of error is appearing
What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?Have compiled and tried publishing code with same wallet address of testnet Which operating system are you using?macOS Which SDK or tool are you using? (if any)TypeScript SDK Describe your environment or tooling in detailusing boiler-plate-template of dApp |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
What does
|
Beta Was this translation helpful? Give feedback.
-
Fixed it using Remix IDE |
Beta Was this translation helpful? Give feedback.
What does
MODULE_ADDRESS_DOES_NOT_MATCH_SENDER
mean?It means that the account publishing the module via a transaction, is not the same as the address in the module. This is usually seen as a named address, or a plain address:
or
In this case, it probably means that there's a dev address filled in for the
dev-addresses
If you have a TOML like this, the address will change based on the
--dev
flagWith a header in the module like: