Skip to content

Commit

Permalink
Populate PrecompiledContractsArbOS30 in geth hook
Browse files Browse the repository at this point in the history
  • Loading branch information
anodar committed Apr 19, 2024
1 parent b178149 commit fe3d330
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gethhook/geth-hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ func init() {
vm.PrecompiledAddressesArbitrum = append(vm.PrecompiledAddressesArbitrum, addr)
}

for addr, precompile := range vm.PrecompiledContractsArbitrum {
vm.PrecompiledContractsArbOS30[addr] = precompile

Check failure on line 71 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 71 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 71 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 71 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 71 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 71 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 71 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 71 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 71 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledContractsArbOS30
}
for addr, precompile := range vm.PrecompiledContractsP256Verify {

Check failure on line 73 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledContractsP256Verify

Check failure on line 73 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledContractsP256Verify

Check failure on line 73 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledContractsP256Verify

Check failure on line 73 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledContractsP256Verify

Check failure on line 73 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledContractsP256Verify

Check failure on line 73 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledContractsP256Verify

Check failure on line 73 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledContractsP256Verify

Check failure on line 73 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledContractsP256Verify

Check failure on line 73 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledContractsP256Verify
vm.PrecompiledContractsArbOS30[addr] = precompile

Check failure on line 74 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 74 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 74 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 74 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 74 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledContractsArbOS30

Check failure on line 74 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledContractsArbOS30
vm.PrecompiledAddressesArbOS30 = append(vm.PrecompiledAddressesArbOS30, addr)

Check failure on line 75 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledAddressesArbOS30

Check failure on line 75 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (race)

undefined: vm.PrecompiledAddressesArbOS30

Check failure on line 75 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledAddressesArbOS30

Check failure on line 75 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults)

undefined: vm.PrecompiledAddressesArbOS30

Check failure on line 75 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledAddressesArbOS30

Check failure on line 75 in gethhook/geth-hook.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

undefined: vm.PrecompiledAddressesArbOS30
}

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

0 comments on commit fe3d330

Please sign in to comment.