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/app): disable fundGasStation on mainnet #2474

Merged
merged 1 commit into from
Nov 13, 2024
Merged
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
7 changes: 5 additions & 2 deletions e2e/app/gaspump.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/omni-network/omni/lib/contracts/gasstation"
"github.com/omni-network/omni/lib/errors"
"github.com/omni-network/omni/lib/log"
"github.com/omni-network/omni/lib/netconf"
"github.com/omni-network/omni/lib/txmgr"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
Expand All @@ -30,8 +31,10 @@ func DeployGasApp(ctx context.Context, def Definition) error {
return errors.Wrap(err, "deploy gas station")
}

if err := fundGasStation(ctx, def); err != nil {
return errors.Wrap(err, "fund gas station")
if def.Testnet.Network != netconf.Mainnet {
if err := fundGasStation(ctx, def); err != nil {
return errors.Wrap(err, "fund gas station")
}
Comment on lines +34 to +37
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe if def.Testnet.Nework.IsEphemeral()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will disable it for Omega too.

}

return nil
Expand Down
Loading