Skip to content
Discussion options

You must be logged in to vote

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:

module deploy_addr::my_module {
  // ...
}

or

module 0x12345::my_module {
  // ...
}

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 flag

[package]
name = "MyPackage"
version = "1.0.0"
authors = []

[addresses]
deploy_addr = "0x55555" (or "_")

[dev-addresses]
deploy_addr = "0x12345"

With a header in the module like:

module deploy_addr::my_module {
  /…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ayushagarwal27
Comment options

Answer selected by kshitijc1506
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants