diff --git a/statediff/builder.go b/statediff/builder.go index 66e9e9cbaae2..b262f2f8de08 100644 --- a/statediff/builder.go +++ b/statediff/builder.go @@ -422,7 +422,7 @@ func (sdb *builder) deletedOrUpdatedState(a, b trie.NodeIterator, diffPathsAtB m // if this node's path did not show up in diffPathsAtB // that means the node at this path was deleted (or moved) in B // emit an empty "removed" diff to signify as such - // emit emtpy "removed" diff for all storage nodes + // emit empty "removed" diff for all storage nodes if _, ok := diffPathsAtB[common.Bytes2Hex(node.Path)]; !ok { diff := types2.StateNode{ NodeType: types2.Removed, diff --git a/statediff/builder_test.go b/statediff/builder_test.go index cf1ea11f6f5b..febf491e515e 100644 --- a/statediff/builder_test.go +++ b/statediff/builder_test.go @@ -74,10 +74,6 @@ var ( common.Hex2Bytes("32575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b"), slot3StorageValue, }) - slot0StorageLeafRootNode, _ = rlp.EncodeToBytes([]interface{}{ - common.Hex2Bytes("20290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563"), - slot0StorageValue, - }) contractAccountAtBlock2, _ = rlp.EncodeToBytes(types.StateAccount{ Nonce: 1,