From 75526402e26c9f20b364ffdf229bc5303abafe47 Mon Sep 17 00:00:00 2001 From: Samuel Stokes Date: Tue, 17 Dec 2024 15:49:37 -0500 Subject: [PATCH] just lint-all --- validation/gas_token.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/validation/gas_token.go b/validation/gas_token.go index ce8fd2905..1eb8aee51 100644 --- a/validation/gas_token.go +++ b/validation/gas_token.go @@ -44,24 +44,24 @@ func CheckGasToken(chain *superchain.ChainConfig, l1Client *ethclient.Client) er } l1BlockPredeployAddress := superchain.MustHexToAddress("0x4200000000000000000000000000000000000015") - got, err := getBool("isCustomGasToken()", l1BlockPredeployAddress, l2Client) + isCustomGasToken, err := getBool("isCustomGasToken()", l1BlockPredeployAddress, l2Client) if err != nil && !strings.Contains(err.Error(), "execution reverted") { // Pre: reverting is acceptable return err } else { // Post: must be set to false - if got != false { + if isCustomGasToken { return fmt.Errorf("L1Block.isCustomGasToken() must return false") } } - got, err = getBool("isCustomGasToken()", superchain.Addresses[chain.ChainID].SystemConfigProxy, l2Client) + isCustomGasToken, err = getBool("isCustomGasToken()", superchain.Addresses[chain.ChainID].SystemConfigProxy, l2Client) if err != nil && !strings.Contains(err.Error(), "execution reverted") { // Pre: reverting is acceptable return err } else { // Post: must be set to false - if got != false { + if isCustomGasToken { return fmt.Errorf("SystemConfigProxy.isCustomGasToken() must return false") } }