aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

How to upgrade my move package (or module)

Open alphabiz-se2 opened this issue 3 years ago • 1 comments

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"
}

image

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 )

alphabiz-se2 avatar Jun 21 '22 02:06 alphabiz-se2

Currently move module republishing is off, and move upgradability is something we're working on cc @wrwg for visibility

gregnazario avatar Jul 25 '22 21:07 gregnazario

Please follow discord, we'll have an update on this topic in the coming weeks.

davidiw avatar Aug 07 '22 16:08 davidiw