forked from TrueCloudLab/neoneo-go
Merge pull request #760 from nspcc-dev/fix-contract-storage-migration
core: fix contract's state migration and don't swallow errors
This commit is contained in:
commit
cff6e226dd
1 changed files with 4 additions and 1 deletions
|
@ -579,7 +579,10 @@ func (ic *interopContext) contractMigrate(v *vm.VM) error {
|
|||
}
|
||||
for k, v := range siMap {
|
||||
v.IsConst = false
|
||||
_ = ic.dao.PutStorageItem(hash, []byte(k), v)
|
||||
err = ic.dao.PutStorageItem(contract.ScriptHash(), []byte(k), v)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue