Mapping from old contract to the new one

51 views Asked by At

trying somehow move mapping to upgrade after vm.resetStorage(). Put one into the cell and try to:

wallets_mapping = abi.decode( wallets_mapping_cell, (mapping(address => BalanceWalletStruct)) );

It works but get response:

wallet_mapping == '{}'

Please advice how to move mapping from old contract to the new one and don't lose it by the way?

Thanks!

1

There are 1 answers

0
ilyar On

See How to upgrade contracts and if the issue is not resolved, then add information about your contest