From 483e1ea33003f135b01ad044fa4334ff3ed7a0e1 Mon Sep 17 00:00:00 2001 From: Michalina Date: Wed, 29 Nov 2023 10:49:44 +0100 Subject: [PATCH] Remove support for Goerli testnet As the Goerli testnet will become deprecated with end of year 2023 and we've already migrated to Sepolia testnet, we'll no longer need the Goerli-related code past that date. --- pkg/chain/ethereum/network.go | 5 +---- pkg/chain/ethereum/network_test.go | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/pkg/chain/ethereum/network.go b/pkg/chain/ethereum/network.go index d39b982..5a460e8 100644 --- a/pkg/chain/ethereum/network.go +++ b/pkg/chain/ethereum/network.go @@ -7,13 +7,12 @@ type Network int const ( Unknown Network = iota Mainnet - Goerli Sepolia Developer ) func (n Network) String() string { - return []string{"unknown", "mainnet", "goerli", "sepolia", "developer"}[n] + return []string{"unknown", "mainnet", "sepolia", "developer"}[n] } // ChainID returns chain id associated with the network. @@ -21,8 +20,6 @@ func (n Network) ChainID() int64 { switch n { case Mainnet: return 1 - case Goerli: - return 5 case Sepolia: return 11155111 } diff --git a/pkg/chain/ethereum/network_test.go b/pkg/chain/ethereum/network_test.go index 92195e7..1049c82 100644 --- a/pkg/chain/ethereum/network_test.go +++ b/pkg/chain/ethereum/network_test.go @@ -17,10 +17,6 @@ func TestNetworkString(t *testing.T) { network: Mainnet, expectedString: "mainnet", }, - "Goerli": { - network: Goerli, - expectedString: "goerli", - }, "Sepolia": { network: Sepolia, expectedString: "sepolia",