Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for Goerli testnet #119

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pkg/chain/ethereum/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,19 @@ 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.
func (n Network) ChainID() int64 {
switch n {
case Mainnet:
return 1
case Goerli:
return 5
case Sepolia:
return 11155111
}
Expand Down
4 changes: 0 additions & 4 deletions pkg/chain/ethereum/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ func TestNetworkString(t *testing.T) {
network: Mainnet,
expectedString: "mainnet",
},
"Goerli": {
network: Goerli,
expectedString: "goerli",
},
"Sepolia": {
network: Sepolia,
expectedString: "sepolia",
Expand Down
Loading