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

Add stylus_testnet to production #2410

Merged
merged 2 commits into from
Nov 8, 2023
Merged
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
13 changes: 8 additions & 5 deletions lib/types/network/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import "fmt"
type BlockchainNetwork string

const (
NetworkEthereum BlockchainNetwork = `ethereum`
NetworkArbitrum BlockchainNetwork = `arbitrum`
NetworkSolana BlockchainNetwork = `solana`
NetworkPolygonZk BlockchainNetwork = `polygon_zk`
NetworkEthereum BlockchainNetwork = `ethereum`
NetworkArbitrum BlockchainNetwork = `arbitrum`
NetworkSolana BlockchainNetwork = `solana`
NetworkPolygonZk BlockchainNetwork = `polygon_zk`
NetworkStylusTestnet BlockchainNetwork = `stylus_testnet`
)

// ParseEthereumNetwork takes a network name as a string
Expand All @@ -28,10 +29,12 @@ func ParseEthereumNetwork(network_ string) (network BlockchainNetwork, err error
network = NetworkArbitrum
case string(NetworkPolygonZk):
network = NetworkPolygonZk
case string(NetworkStylusTestnet):
network = NetworkStylusTestnet
default:
err = fmt.Errorf(
"Unknown network name '%s'",
network,
network_,
)
}

Expand Down