Skip to content

Commit

Permalink
chore(e2e): do not deploy gas pump on mainnet (#2212)
Browse files Browse the repository at this point in the history
Do not deploy: gas pump on mainnet.

issue: none
  • Loading branch information
kevinhalliday authored Oct 17, 2024
1 parent c2ad91d commit 4a9e57e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 0 additions & 3 deletions e2e/app/gaspump.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ func deployGasStation(ctx context.Context, def Definition) error {
}

// fundGasStation funds a network's OmniGasStation contract on Omni's EVM.
//
// TODO: handle funding / monitoring properly.
// consider joining with e2e/app/eoa, or introduce something similar for contracts.
func fundGasStation(ctx context.Context, def Definition) error {
omniEVM, ok := def.Testnet.OmniEVMChain()
if !ok {
Expand Down
6 changes: 4 additions & 2 deletions e2e/app/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ func Deploy(ctx context.Context, def Definition, cfg DeployConfig) (*pingpong.XD
return nil, err
}

if err := DeployGasApp(ctx, def); err != nil {
return nil, err
if def.Testnet.Network.IsEphemeral() {
if err := DeployGasApp(ctx, def); err != nil {
return nil, err
}
}

if err := setupTokenBridge(ctx, def); err != nil {
Expand Down
6 changes: 6 additions & 0 deletions lib/contracts/fund.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ type WithFundThreshold struct {
}

func ToFund(ctx context.Context, network netconf.ID) ([]WithFundThreshold, error) {
// GasStation will not deployed initially on mainnet
// TODO: remove this when mainnet GasStation
if network == netconf.Mainnet {
return []WithFundThreshold{}, nil
}

addrs, err := GetAddresses(ctx, network)
if err != nil {
return nil, err
Expand Down

0 comments on commit 4a9e57e

Please sign in to comment.