mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-02-09 05:19:49 +00:00
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 {
|
for k, v := range siMap {
|
||||||
v.IsConst = false
|
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…
Add table
Reference in a new issue