Skip to content

Commit

Permalink
Merge pull request #2239 from OffchainLabs/secp256r1-precompile
Browse files Browse the repository at this point in the history
Populate PrecompiledContractsArbOS30 in geth hook
  • Loading branch information
PlasmaPower authored Apr 29, 2024
2 parents be16700 + 6a8bb07 commit faaaf30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions gethhook/geth-hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ func init() {
vm.PrecompiledAddressesArbitrum = append(vm.PrecompiledAddressesArbitrum, addr)
}

for addr, precompile := range vm.PrecompiledContractsArbitrum {
vm.PrecompiledContractsArbOS30[addr] = precompile
vm.PrecompiledAddressesArbOS30 = append(vm.PrecompiledAddressesArbOS30, addr)
}
for addr, precompile := range vm.PrecompiledContractsP256Verify {
vm.PrecompiledContractsArbOS30[addr] = precompile
vm.PrecompiledAddressesArbOS30 = append(vm.PrecompiledAddressesArbOS30, addr)
}

core.RenderRPCError = func(data []byte) error {
if len(data) < 4 {
return nil
Expand Down

0 comments on commit faaaf30

Please sign in to comment.