diff --git a/pkg/chain/ethereum/network.go b/pkg/chain/ethereum/network.go index ac536fd..d39b982 100644 --- a/pkg/chain/ethereum/network.go +++ b/pkg/chain/ethereum/network.go @@ -8,11 +8,12 @@ const ( Unknown Network = iota Mainnet Goerli + Sepolia Developer ) func (n Network) String() string { - return []string{"unknown", "mainnet", "goerli", "developer"}[n] + return []string{"unknown", "mainnet", "goerli", "sepolia", "developer"}[n] } // ChainID returns chain id associated with the network. @@ -22,6 +23,8 @@ func (n Network) ChainID() int64 { return 1 case Goerli: return 5 + case Sepolia: + return 11155111 } return 0 } diff --git a/pkg/chain/ethereum/network_test.go b/pkg/chain/ethereum/network_test.go index 6c86d8f..92195e7 100644 --- a/pkg/chain/ethereum/network_test.go +++ b/pkg/chain/ethereum/network_test.go @@ -21,6 +21,10 @@ func TestNetworkString(t *testing.T) { network: Goerli, expectedString: "goerli", }, + "Sepolia": { + network: Sepolia, + expectedString: "sepolia", + }, "Developer": { network: Developer, expectedString: "developer",