From f68667d45263b3cd4efb73904439418567d915eb Mon Sep 17 00:00:00 2001 From: user Date: Thu, 9 Nov 2023 00:35:25 +1030 Subject: [PATCH] Add stylus_testnet to the networks --- lib/types/network/blockchain.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/types/network/blockchain.go b/lib/types/network/blockchain.go index 037457173..9c194f07a 100644 --- a/lib/types/network/blockchain.go +++ b/lib/types/network/blockchain.go @@ -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 @@ -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_, ) }