Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
scorbajio committed Apr 27, 2024
1 parent 8110735 commit 63bc7d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vm/src/buildBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/vm/src/runBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ export async function rewardAccount(
): Promise<Account> {
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)

Check failure on line 702 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/buildBlock.spec.ts > BlockBuilder > should build a block without any txs

TypeError: Cannot read properties of undefined (reading 'touchAndChargeProofOfAbsence') ❯ Module.rewardAccount src/runBlock.ts:702:24 ❯ BlockBuilder.rewardMiner src/buildBlock.ts:177:5 ❯ BlockBuilder.build src/buildBlock.ts:299:7 ❯ test/api/buildBlock.spec.ts:277:19

Check failure on line 702 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/runBlock.spec.ts > runBlock() -> successful API parameter usage > setHardfork option

TypeError: Cannot read properties of undefined (reading 'touchAndChargeProofOfAbsence') ❯ rewardAccount src/runBlock.ts:702:24 ❯ VM.assignBlockRewards src/runBlock.ts:664:19 ❯ VM.applyBlock src/runBlock.ts:419:5 ❯ VM.runBlock src/runBlock.ts:173:14 ❯ test/api/runBlock.spec.ts:173:33
Expand All @@ -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(

Check failure on line 711 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/buildBlock.spec.ts > BlockBuilder > should build a valid block

TypeError: Cannot read properties of undefined (reading 'touchTxTargetAndComputeGas') ❯ Module.rewardAccount src/runBlock.ts:711:71 ❯ BlockBuilder.rewardMiner src/buildBlock.ts:177:5 ❯ BlockBuilder.build src/buildBlock.ts:299:7 ❯ test/api/buildBlock.spec.ts:39:19

Check failure on line 711 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/buildBlock.spec.ts > BlockBuilder > should correctly seal a PoW block

TypeError: Cannot read properties of undefined (reading 'touchTxTargetAndComputeGas') ❯ Module.rewardAccount src/runBlock.ts:711:71 ❯ BlockBuilder.rewardMiner src/buildBlock.ts:177:5 ❯ BlockBuilder.build src/buildBlock.ts:299:7 ❯ test/api/buildBlock.spec.ts:106:19

Check failure on line 711 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/buildBlock.spec.ts > BlockBuilder > should throw if block already built or reverted

TypeError: Cannot read properties of undefined (reading 'touchTxTargetAndComputeGas') ❯ Module.rewardAccount src/runBlock.ts:711:71 ❯ BlockBuilder.rewardMiner src/buildBlock.ts:177:5 ❯ BlockBuilder.build src/buildBlock.ts:299:7 ❯ test/api/buildBlock.spec.ts:230:5

Check failure on line 711 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/buildBlock.spec.ts > BlockBuilder > should build a 1559 block with legacy and 1559 txs

TypeError: Cannot read properties of undefined (reading 'touchTxTargetAndComputeGas') ❯ Module.rewardAccount src/runBlock.ts:711:71 ❯ BlockBuilder.rewardMiner src/buildBlock.ts:177:5 ❯ BlockBuilder.build src/buildBlock.ts:299:7 ❯ test/api/buildBlock.spec.ts:345:19

Check failure on line 711 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/runBlock.spec.ts > runBlock() -> successful API parameter usage > PoW block, unmodified options

TypeError: Cannot read properties of undefined (reading 'touchTxTargetAndComputeGas') ❯ rewardAccount src/runBlock.ts:711:71 ❯ VM.assignBlockRewards src/runBlock.ts:664:19 ❯ VM.applyBlock src/runBlock.ts:419:5 ❯ VM.runBlock src/runBlock.ts:173:14 ❯ simpleRun test/api/runBlock.spec.ts:50:17 ❯ test/api/runBlock.spec.ts:112:5

Check failure on line 711 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/runBlock.spec.ts > runBlock() -> successful API parameter usage > Uncle blocks, compute uncle rewards

TypeError: Cannot read properties of undefined (reading 'touchTxTargetAndComputeGas') ❯ rewardAccount src/runBlock.ts:711:71 ❯ VM.assignBlockRewards src/runBlock.ts:664:19 ❯ VM.applyBlock src/runBlock.ts:419:5 ❯ VM.runBlock src/runBlock.ts:173:14 ❯ uncleRun test/api/runBlock.spec.ts:72:5 ❯ test/api/runBlock.spec.ts:117:5

Check failure on line 711 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/runBlock.spec.ts > runBlock() -> successful API parameter usage > PoW block, Common custom chain (Common.custom() static constructor)

TypeError: Cannot read properties of undefined (reading 'touchTxTargetAndComputeGas') ❯ rewardAccount src/runBlock.ts:711:71 ❯ VM.assignBlockRewards src/runBlock.ts:664:19 ❯ VM.applyBlock src/runBlock.ts:419:5 ❯ VM.runBlock src/runBlock.ts:173:14 ❯ simpleRun test/api/runBlock.spec.ts:50:17 ❯ test/api/runBlock.spec.ts:124:5

Check failure on line 711 in packages/vm/src/runBlock.ts

View workflow job for this annotation

GitHub Actions / vm-api

test/api/runBlock.spec.ts > runBlock() -> successful API parameter usage > PoW block, Common custom chain (Common customChains constructor option)

TypeError: Cannot read properties of undefined (reading 'touchTxTargetAndComputeGas') ❯ rewardAccount src/runBlock.ts:711:71 ❯ VM.assignBlockRewards src/runBlock.ts:664:19 ❯ VM.applyBlock src/runBlock.ts:419:5 ❯ VM.runBlock src/runBlock.ts:173:14 ❯ simpleRun test/api/runBlock.spec.ts:50:17 ❯ test/api/runBlock.spec.ts:131:5
address,
Expand Down

0 comments on commit 63bc7d4

Please sign in to comment.