Skip to content

Commit

Permalink
trie/utils: fix incorrect bigint assignment (ethereum#193)
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign authored Mar 29, 2023
1 parent 1c37751 commit 9392c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trie/utils/verkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func GetTreeKeyStorageSlotWithEvaluatedAddress(evaluated *verkle.Point, storageK
} else {
pos.Add(mainStorageOffsetBig, pos)
}
treeIndex, overflow := uint256.FromBig(pos.Div(pos, verkleNodeWidthBig))
treeIndex, overflow := uint256.FromBig(big.NewInt(0).Div(pos, verkleNodeWidthBig))
if overflow { // Must never happen considering the EIP definition.
panic("tree index overflow")
}
Expand Down

0 comments on commit 9392c6d

Please sign in to comment.