abieos icon indicating copy to clipboard operation
abieos copied to clipboard

erase old version abi before insert new version abi when set abi

Open gzliudan opened this issue 4 years ago • 0 comments

Because element keys in a map are unique, the insertion operation checks whether each inserted element has a key equivalent to the one of an element already in the container, and if so, the element is not inserted. So when we set a contract of new version, we must erase old version first. Otherwise the new contract is not inserted, and the old contract is still in context.

gzliudan avatar Aug 23 '20 05:08 gzliudan