From 63bc7d43d052455436bcc9cdff559f4cd7aab1d3 Mon Sep 17 00:00:00 2001 From: Amir Date: Fri, 26 Apr 2024 20:13:31 -0700 Subject: [PATCH] Fix lint issues --- packages/vm/src/buildBlock.ts | 2 +- packages/vm/src/runBlock.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vm/src/buildBlock.ts b/packages/vm/src/buildBlock.ts index 4765f7560e..f67539f391 100644 --- a/packages/vm/src/buildBlock.ts +++ b/packages/vm/src/buildBlock.ts @@ -224,7 +224,7 @@ export class BlockBuilder { } let blobGasUsed = undefined if (tx instanceof BlobEIP4844Transaction) { - if (!this.blockOpts.common?.isActivatedEIP(4844)) { + if (this.blockOpts.common?.isActivatedEIP(4844) === false) { throw Error('eip4844 not activated yet for adding a blob transaction') } const blobTx = tx as BlobEIP4844Transaction diff --git a/packages/vm/src/runBlock.ts b/packages/vm/src/runBlock.ts index 4632f1d146..af54bb7593 100644 --- a/packages/vm/src/runBlock.ts +++ b/packages/vm/src/runBlock.ts @@ -696,7 +696,7 @@ export async function rewardAccount( ): Promise { let account = await evm.stateManager.getAccount(address) if (account === undefined) { - if (common?.isActivatedEIP(6800)) { + if (common?.isActivatedEIP(6800) === false) { ;( evm.stateManager as StatelessVerkleStateManager ).accessWitness!.touchAndChargeProofOfAbsence(address) @@ -706,7 +706,7 @@ export async function rewardAccount( account.balance += reward await evm.journal.putAccount(address, account) - if (common?.isActivatedEIP(6800)) { + if (common?.isActivatedEIP(6800) === false) { // use this utility to build access but the computed gas is not charged and hence free ;(evm.stateManager as StatelessVerkleStateManager).accessWitness!.touchTxTargetAndComputeGas( address,