From 80b06f9eee5002fc5003a3dd06f104c975a62b28 Mon Sep 17 00:00:00 2001 From: aureliusbtc <82057759+aureliusbtc@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:34:29 -0400 Subject: [PATCH] fix presets (pre merge no longer supported) --- ethergo/backends/preset/presets.go | 2 +- services/omnirpc/rpcinfo/latency_test.go | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ethergo/backends/preset/presets.go b/ethergo/backends/preset/presets.go index 6b41917fe5..d258e95713 100644 --- a/ethergo/backends/preset/presets.go +++ b/ethergo/backends/preset/presets.go @@ -42,7 +42,7 @@ func GetMaticMumbai() Backend { chainConfig := *params.AllCliqueProtocolChanges chainConfig.ChainID = client.MaticMainnetConfig.ChainID // london is not activated on bsc - chainConfig.LondonBlock = nil + chainConfig.LondonBlock = big.NewInt(0) return Backend{ config: &chainConfig, diff --git a/services/omnirpc/rpcinfo/latency_test.go b/services/omnirpc/rpcinfo/latency_test.go index 46e6f8ff76..c4289cf3a6 100644 --- a/services/omnirpc/rpcinfo/latency_test.go +++ b/services/omnirpc/rpcinfo/latency_test.go @@ -2,27 +2,28 @@ package rpcinfo_test import ( "context" + "net/http" + "net/http/httptest" + "sync" + "time" + . "github.com/stretchr/testify/assert" "github.com/synapsecns/sanguine/core/metrics" "github.com/synapsecns/sanguine/ethergo/backends/geth" "github.com/synapsecns/sanguine/ethergo/backends/preset" "github.com/synapsecns/sanguine/services/omnirpc/rpcinfo" "golang.org/x/sync/errgroup" - "net/http" - "net/http/httptest" - "sync" - "time" ) func (r *LatencySuite) TestRPCLatency() { var bsc, avalanche *geth.Backend g, _ := errgroup.WithContext(r.GetTestContext()) g.Go(func() error { - bsc = preset.GetBSCTestnet().Geth(r.GetTestContext(), r.T()) + bsc = preset.GetMaticMumbai().Geth(r.GetTestContext(), r.T()) return nil }) g.Go(func() error { - avalanche = preset.GetAvalancheLocal().Geth(r.GetTestContext(), r.T()) + avalanche = preset.GetSepolia().Geth(r.GetTestContext(), r.T()) return nil }) Nil(r.T(), g.Wait())