Skip to content

Commit

Permalink
fix: compare headers' number in Big.Int rather than Uint64 (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 authored Jan 15, 2024
1 parent e2e2ac7 commit 7ade1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ func (c *verifyDoubleSignEvidence) Run(input []byte) ([]byte, error) {
}

// basic check
if header1.Number.Uint64() != header2.Number.Uint64() {
if header1.Number.Cmp(header2.Number) != 0 {
return nil, ErrExecutionReverted
}
if header1.ParentHash != header2.ParentHash {
Expand Down

0 comments on commit 7ade1d2

Please sign in to comment.