From 24c4fe67a9614d05dfa36d2175baf01b686a2a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Thu, 15 Feb 2024 12:41:37 +0100 Subject: [PATCH] Suppress linting warnings --- state/executor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/state/executor.go b/state/executor.go index 59bb8be818..d1ac8d7443 100644 --- a/state/executor.go +++ b/state/executor.go @@ -698,7 +698,7 @@ func (t *Transition) apply(msg *types.Transaction) (*runtime.ExecutionResult, er coinbaseFee := new(big.Int).Mul(new(big.Int).SetUint64(result.GasUsed), effectiveTip) t.state.AddBalance(t.ctx.Coinbase, coinbaseFee) - // nolint:godox + //nolint:godox // TODO - burning of base fee should not be done in the EVM // Burn some amount if the london hardfork is applied. // Basically, burn amount is just transferred to the current burn contract. @@ -1342,6 +1342,7 @@ func (t *Transition) RevertToSnapshot(snapshot int) error { }) if idx == len(t.journalRevisions) || t.journalRevisions[idx].ID != snapshot { + //nolint:gocritic panic(fmt.Errorf("journal revision id %v cannot be reverted", snapshot)) }