Skip to content

Commit d8c8092

Browse files
authored
add preview network (#2121)
1 parent ded1d34 commit d8c8092

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/evm/gateway.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type gatewayFlag struct {
6060
RPCPort int `flag:"rpc-port" default:"3000" info:"port for the RPC API server"`
6161
AccessNodeHost string `flag:"access-node-host" default:"localhost:3569" info:"host to the flow access node gRPC API"`
6262
InitCadenceHeight uint64 `flag:"init-cadence-height" default:"0" info:"init cadence block height from where the event ingestion will start. WARNING: you should only provide this if there are no existing values in the database, otherwise an error will be thrown"`
63-
EVMNetworkID string `flag:"evm-network-id" default:"testnet" info:"EVM network ID (testnet, mainnet)"`
63+
EVMNetworkID string `flag:"evm-network-id" default:"testnet" info:"EVM network ID (preview, testnet, mainnet)"`
6464
FlowNetworkID string `flag:"flow-network-id" default:"emulator" info:"EVM network ID (emulator, testnet, mainnet)"`
6565
Coinbase string `flag:"coinbase" default:"" info:"coinbase address to use for fee collection"`
6666
GasPrice string `flag:"gas-price" default:"1" info:"static gas price used for EVM transactions"`
@@ -126,6 +126,8 @@ var gatewayCommand = &command.Command{
126126
switch flagGateway.EVMNetworkID {
127127
case "testnet":
128128
cfg.EVMNetworkID = types.FlowEVMTestNetChainID
129+
case "preview":
130+
cfg.EVMNetworkID = types.FlowEVMPreviewNetChainID
129131
case "mainnet":
130132
cfg.EVMNetworkID = types.FlowEVMMainNetChainID
131133
default:

0 commit comments

Comments
 (0)