Skip to content

Commit

Permalink
Add stylus_testnet to the networks
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Nov 8, 2023
1 parent b6e7bdf commit f68667d
Showing 1 changed file with 8 additions and 5 deletions.
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

0 comments on commit f68667d

Please sign in to comment.