Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(e2e): do not deploy gas pump on mainnet #2212

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading