mpt: update MPT after the block processing
This commit is contained in:
parent
168ba7960c
commit
30423f3306
4 changed files with 39 additions and 11 deletions
|
@ -440,6 +440,7 @@ func TestContractDestroy(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
err = bc.dao.PutStorageItem(cs1.ID, []byte{1, 2, 3}, &state.StorageItem{Value: []byte{3, 2, 1}})
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, bc.dao.UpdateMPT())
|
||||
|
||||
t.Run("no contract", func(t *testing.T) {
|
||||
res, err := invokeContractMethod(bc, 1_00000000, mgmtHash, "destroy")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue