Skip to content

Commit

Permalink
fix: use nonce instead of balance in nonce leaf (ethereum#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet authored May 4, 2023
1 parent 5100de9 commit a8035b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func (kvm *keyValueMigrator) addAccount(addr []byte, acc snapshot.Account) {

var nonce [verkle.LeafValueSize]byte
binary.LittleEndian.PutUint64(nonce[:8], acc.Nonce)
leafNodeData.Values[tutils.NonceLeafKey] = balance[:]
leafNodeData.Values[tutils.NonceLeafKey] = nonce[:]

leafNodeData.Values[tutils.CodeKeccakLeafKey] = acc.CodeHash[:]

Expand Down

0 comments on commit a8035b0

Please sign in to comment.