From e71b7e4b53f39dcd87432c18decb7d8bf6c571a5 Mon Sep 17 00:00:00 2001 From: hexshire Date: Thu, 18 Sep 2025 19:54:52 -0300 Subject: [PATCH] test: fix custom gas token text --- op-deployer/pkg/deployer/state/intent.go | 1 - op-deployer/pkg/deployer/state/intent_test.go | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/op-deployer/pkg/deployer/state/intent.go b/op-deployer/pkg/deployer/state/intent.go index 5adc898c44c..b4edc275a37 100644 --- a/op-deployer/pkg/deployer/state/intent.go +++ b/op-deployer/pkg/deployer/state/intent.go @@ -158,7 +158,6 @@ func (c *Intent) validateStandardValues() error { if len(chain.AdditionalDisputeGames) > 0 { return fmt.Errorf("%w: chainId=%s additionalDisputeGames must be nil", ErrNonStandardValue, chain.ID) } - if chain.CustomGasToken.Enabled { return fmt.Errorf("%w: chainId=%s custom gas token must be nil for standard chains", ErrNonStandardValue, chain.ID) } diff --git a/op-deployer/pkg/deployer/state/intent_test.go b/op-deployer/pkg/deployer/state/intent_test.go index dae5cae334b..3fdd975c576 100644 --- a/op-deployer/pkg/deployer/state/intent_test.go +++ b/op-deployer/pkg/deployer/state/intent_test.go @@ -68,10 +68,10 @@ func TestValidateStandardValues(t *testing.T) { "CustomGasToken", func(intent *Intent) { intent.Chains[0].CustomGasToken = CustomGasToken{ - Enabled: false, - Name: "", - Symbol: "", - NativeAssetLiquidityAmount: (*hexutil.Big)(big.NewInt(0)), + Enabled: true, + Name: "Custom Gas Token", + Symbol: "CGT", + NativeAssetLiquidityAmount: (*hexutil.Big)(big.NewInt(1000)), } }, ErrNonStandardValue,