Skip to content

Commit

Permalink
just lint-all
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseguy committed Dec 17, 2024
1 parent 5d642dc commit 7552640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions validation/gas_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down

0 comments on commit 7552640

Please sign in to comment.