aptos-core
aptos-core copied to clipboard
How to upgrade my move package (or module)
How to upgrade my move package (or module)
I try to modify my move module and execute the publish command after compilation
Old Package:
- sources
- FooMessage.move
New Package:
- sources
- FooMessage.move [ modified ]
- BarMessage.move [ created ]
but it tells me DUPLICATE_MODULE_NAME
{
"Error": "API error: transaction execution failed: Transaction Executed and Committed with Error DUPLICATE_MODULE_NAME"
}

My understanding of this is that duplicate FooMessage modules are published.
But I don't know how to update published modules ( FooMessage.move ), and add new modules ( BarMessage.move )
Currently move module republishing is off, and move upgradability is something we're working on cc @wrwg for visibility
Please follow discord, we'll have an update on this topic in the coming weeks.