Updated unit tests for changes in builder
This commit is contained in:
parent
536cd32b46
commit
94664b1b4a
@ -2082,16 +2082,10 @@ func TestBuilderWithRemovedWatchedAccount(t *testing.T) {
|
|||||||
NodeValue: contractAccountAtBlock5LeafNode,
|
NodeValue: contractAccountAtBlock5LeafNode,
|
||||||
StorageNodes: []types2.StorageNode{
|
StorageNodes: []types2.StorageNode{
|
||||||
{
|
{
|
||||||
Path: []byte{},
|
Path: []byte{'\x0c'},
|
||||||
NodeType: types2.Leaf,
|
NodeType: types2.Leaf,
|
||||||
LeafKey: slot0StorageKey.Bytes(),
|
LeafKey: slot3StorageKey.Bytes(),
|
||||||
NodeValue: slot0StorageLeafRootNode,
|
NodeValue: slot3StorageLeafNode,
|
||||||
},
|
|
||||||
{
|
|
||||||
Path: []byte{'\x02'},
|
|
||||||
NodeType: types2.Removed,
|
|
||||||
LeafKey: slot0StorageKey.Bytes(),
|
|
||||||
NodeValue: []byte{},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Path: []byte{'\x04'},
|
Path: []byte{'\x04'},
|
||||||
@ -2128,6 +2122,20 @@ func TestBuilderWithRemovedWatchedAccount(t *testing.T) {
|
|||||||
NodeType: types2.Removed,
|
NodeType: types2.Removed,
|
||||||
LeafKey: contractLeafKey,
|
LeafKey: contractLeafKey,
|
||||||
NodeValue: []byte{},
|
NodeValue: []byte{},
|
||||||
|
StorageNodes: []types2.StorageNode{
|
||||||
|
{
|
||||||
|
Path: []byte{'\x02'},
|
||||||
|
NodeType: types2.Removed,
|
||||||
|
LeafKey: slot0StorageKey.Bytes(),
|
||||||
|
NodeValue: []byte{},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Path: []byte{'\x0c'},
|
||||||
|
NodeType: types2.Removed,
|
||||||
|
LeafKey: slot3StorageKey.Bytes(),
|
||||||
|
NodeValue: []byte{},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Path: []byte{'\x0e'},
|
Path: []byte{'\x0e'},
|
||||||
|
Loading…
Reference in New Issue
Block a user