diff --git a/core/trie/bitarray.go b/core/trie/bitarray.go index 8ba7caa13..90fe8b366 100644 --- a/core/trie/bitarray.go +++ b/core/trie/bitarray.go @@ -323,7 +323,7 @@ func (b *BitArray) Append(x, y *BitArray) *BitArray { // Sets the bit array to the concatenation of x and a single bit. func (b *BitArray) AppendBit(x *BitArray, bit uint8) *BitArray { - return b.Append(b, new(BitArray).SetBit(bit)) + return b.Append(x, new(BitArray).SetBit(bit)) } // Sets the bit array to a subset of x from startPos (inclusive) to endPos (exclusive),