From fe3d330e2f65241ba769cada721f5424ad38246d Mon Sep 17 00:00:00 2001 From: Nodar Ambroladze Date: Fri, 19 Apr 2024 13:58:07 +0200 Subject: [PATCH 1/3] Populate PrecompiledContractsArbOS30 in geth hook --- gethhook/geth-hook.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gethhook/geth-hook.go b/gethhook/geth-hook.go index dcd1788710..fa41edd179 100644 --- a/gethhook/geth-hook.go +++ b/gethhook/geth-hook.go @@ -67,6 +67,14 @@ func init() { vm.PrecompiledAddressesArbitrum = append(vm.PrecompiledAddressesArbitrum, addr) } + for addr, precompile := range vm.PrecompiledContractsArbitrum { + vm.PrecompiledContractsArbOS30[addr] = precompile + } + 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 From 42891b39be05d378e3231bd43deeb307fd67da7f Mon Sep 17 00:00:00 2001 From: Nodar Ambroladze Date: Fri, 19 Apr 2024 13:58:54 +0200 Subject: [PATCH 2/3] Change geth pin --- go-ethereum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go-ethereum b/go-ethereum index 22399a74e2..6d749bf837 160000 --- a/go-ethereum +++ b/go-ethereum @@ -1 +1 @@ -Subproject commit 22399a74e2b413e99a4f0d06c65862ced0d021c7 +Subproject commit 6d749bf837c32b9fad59d53b1335f33d0afc824d From 213993102fb1d84e466e4f0a5144d840c305b5d1 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Wed, 24 Apr 2024 15:21:43 -0500 Subject: [PATCH 3/3] Fix PrecompiledAddressesArbOS30 --- gethhook/geth-hook.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gethhook/geth-hook.go b/gethhook/geth-hook.go index fa41edd179..4f4ed66235 100644 --- a/gethhook/geth-hook.go +++ b/gethhook/geth-hook.go @@ -69,6 +69,7 @@ func init() { 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