Skip to content

Commit

Permalink
Merge pull request #2410 from fluidity-money/develop
Browse files Browse the repository at this point in the history
Add stylus_testnet to production
  • Loading branch information
af-afk authored Nov 8, 2023
2 parents bc463dd + 4ef0f7b commit fb23373
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 fb23373

Please sign in to comment.