Skip to content

Commit

Permalink
Merge pull request #4 from ost006/main
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiker authored May 31, 2024
2 parents 8f81734 + 0b73ae4 commit 385da7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eth/tracers/native/bundler_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ func (b *bundlerCollector) isEXTorCALL(opcode string) bool {
// [OP-062]
func (b *bundlerCollector) isAllowedPrecompile(addr common.Address) bool {
addrInt := addr.Big()
return addrInt.Cmp(big.NewInt(0)) == 1 && addrInt.Cmp(big.NewInt(10)) == -1
isWithinRange := addrInt.Cmp(big.NewInt(0)) == 1 && addrInt.Cmp(big.NewInt(10)) == -1
isP256VerifyAddress := addr.Cmp(common.BytesToAddress([]byte{0x01, 0x00})) == 0
return isWithinRange || isP256VerifyAddress
}

func (b *bundlerCollector) incrementCount(m map[string]uint64, k string) {
Expand Down

0 comments on commit 385da7e

Please sign in to comment.