Skip to content

Commit

Permalink
chore(admin): fix allow network logic (#2602)
Browse files Browse the repository at this point in the history
Fix allow network logic

issue: none
  • Loading branch information
fabtreb authored Dec 2, 2024
1 parent 57a3b48 commit 994f2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/app/admin/allowoperator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var mainnetOperators = []common.Address{
// Note it only adds any of the operators that are missing, it doesn't remove any ever.
func AllowOperators(ctx context.Context, def app.Definition, cfg Config) error {
network := def.Testnet.Network
if network.Static().Network != netconf.Omega || network.Static().Network != netconf.Mainnet {
if network.Static().Network != netconf.Omega && network.Static().Network != netconf.Mainnet {
return errors.New("allow operator only supported on omega or mainnet", "network", network.Static().Network.String())
}

Expand Down

0 comments on commit 994f2d6

Please sign in to comment.