Skip to content

Commit

Permalink
Run biome as part of lint scripts (#3843)
Browse files Browse the repository at this point in the history
* Add biome to lint script

* lint
  • Loading branch information
acolytec3 authored Jan 22, 2025
1 parent a46beab commit 5ba37f3
Show file tree
Hide file tree
Showing 18 changed files with 83 additions and 44 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"private": true,
"workspaces": ["packages/*"],
"scripts": {
"biome": "npx @biomejs/biome check --write",
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"checkNpmVersion": "./scripts/check-npm-version.sh",
"clean": "./config/cli/clean-root.sh",
"cspell": "npm run cspell:ts && npm run cspell:md",
Expand All @@ -15,8 +16,8 @@
"e2e:resolutions": "node ./scripts/e2e-resolutions.js",
"examples": "npm run examples --workspaces --if-present",
"examples:build": "npm run examples:build --workspaces --if-present",
"lint": "eslint --format codeframe --config ./config/eslint.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config ./config/eslint.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --format codeframe --config ./config/eslint.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config ./config/eslint.cjs . --ext .js,.ts",
"lint:diff": "./config/cli/lint-diff.sh",
"test": "npm run test --workspaces --if-present",
"test:node": "npm run test:node --workspaces --if-present",
Expand Down
6 changes: 4 additions & 2 deletions packages/block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- block",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=../../config/vitest.config.browser.mts",
Expand Down
6 changes: 4 additions & 2 deletions packages/blockchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- blockchain",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=./vitest.config.browser.mts",
Expand Down
6 changes: 4 additions & 2 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"files": ["dist"],
"scripts": {
"binWorkaround": "test -f dist/bin/cli.js || echo 'install fails if bin script does not exist (https://github.com/npm/cli/issues/2632), creating placeholder file at \"dist/bin/cli.js\"' && mkdir -p 'dist/bin' && touch dist/bin/cli.js",
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "npm run build:common && mkdir -p ./src/trustedSetup/ && cp -Rf ./src/trustedSetups ./dist/src/",
"build:common": "./scripts/ts-build.sh && ./scripts/postBuildFixes.sh",
"bundle": "webpack",
Expand All @@ -34,8 +36,8 @@
"coverage": "npx vitest --coverage --coverage.include=src --coverage.reporter=lcov run test/* -c=./vitest.config.unit.ts",
"docs:build": "typedoc --options typedoc.cjs --tsconfig tsconfig.prod.cjs.json",
"examples": "tsx ../../scripts/examples-runner.ts -- client",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"preinstall": "npm run binWorkaround",
"prepublishOnly": "../../config/cli/prepublish.sh",
"repl": "npx tsx ./bin/repl.ts --logLevel=error",
Expand Down
6 changes: 4 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- common",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=../../config/vitest.config.browser.mts",
Expand Down
6 changes: 4 additions & 2 deletions packages/devp2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- devp2p",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "vitest run",
"test:node": "npm run test",
Expand Down
6 changes: 4 additions & 2 deletions packages/ethash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "npx vitest --coverage --coverage.include=src --coverage.reporter=lcov run test/*",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- ethash",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npx vitest run",
"tsc": "../../config/cli/ts-compile.sh"
Expand Down
6 changes: 4 additions & 2 deletions packages/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
Expand All @@ -34,8 +36,8 @@
"examples": "tsx ../../scripts/examples-runner.ts -- evm",
"examples:build": "npx embedme README.md",
"formatTest": "node ./scripts/formatTest",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"profiling": "0x ./benchmarks/run.js profiling",
"test": "npm run test:node && npm run test:browser",
Expand Down
6 changes: 4 additions & 2 deletions packages/genesis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
"examples": "tsx ../../scripts/examples-runner.ts -- genesis",
"examples:build": "npx embedme README.md",
"docs:build": "typedoc --options typedoc.cjs",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npm run test:node",
"test:browser": "npx vitest run --config=../../config/vitest.config.browser.mts",
Expand Down
6 changes: 4 additions & 2 deletions packages/mpt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@
"files": ["dist", "src"],
"scripts": {
"benchmarks": "node -r tsx/register --max-old-space-size=8024 benchmarks",
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- mpt",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"profiling": "tsc --target ES5 benchmarks/random.ts && 0x benchmarks/random.js",
"test": "npm run test:node && npm run test:browser",
Expand Down
6 changes: 4 additions & 2 deletions packages/rlp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,17 @@
},
"files": ["dist", "bin", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"benchmarks": "node ./benchmarks/index.js",
"build": "../../config/cli/ts-build.sh node",
"build:benchmarks": "npm run build && tsc -p tsconfig.benchmarks.json",
"clean": "../../config/cli/clean-package.sh",
"coverage": "npx vitest --coverage --coverage.include=src run",
"examples": "tsx ../../scripts/examples-runner.ts -- rlp",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=./vitest.config.browser.mts",
Expand Down
6 changes: 4 additions & 2 deletions packages/statemanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- statemanager",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh && npm run test:node",
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=./vitest.config.browser.mts",
Expand Down
6 changes: 4 additions & 2 deletions packages/tx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- tx",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=./vitest.config.browser.mts",
Expand Down
6 changes: 4 additions & 2 deletions packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "DEBUG=ethjs npx vitest run --coverage.enabled --coverage.reporter=lcov",
"docs:build": "npx typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- util",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npm run test:node && npm run test:browser",
"test:browser": "npx vitest run --config=../../config/vitest.config.browser.mts",
Expand Down
6 changes: 4 additions & 2 deletions packages/verkle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@
},
"files": ["dist", "src"],
"scripts": {
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "npx vitest run --coverage.enabled --coverage.reporter=lcov",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- verkle",
"examples:build": "npx embedme README.md",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh",
"test": "npm run test:node",
"test:node": "npx vitest run",
Expand Down
6 changes: 4 additions & 2 deletions packages/vm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"files": ["dist", "src"],
"scripts": {
"benchmarks": "node --max-old-space-size=4096 ./benchmarks/run.js benchmarks mainnetBlocks:10",
"biome": "npx @biomejs/biome check",
"biome:fix": "npx @biomejs/biome check --write",
"build": "../../config/cli/ts-build.sh",
"build:benchmarks": "npm run build && tsc -p tsconfig.benchmarks.json",
"clean": "../../config/cli/clean-package.sh",
Expand All @@ -36,8 +38,8 @@
"examples": "tsx ../../scripts/examples-runner.ts -- vm",
"examples:build": "npx embedme README.md",
"formatTest": "node ./scripts/formatTest",
"lint": "eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"lint": "npm run biome && eslint --config .eslintrc.cjs . --ext .js,.ts",
"lint:fix": "npm run biome:fix && eslint --fix --config .eslintrc.cjs . --ext .js,.ts",
"prepublishOnly": "../../config/cli/prepublish.sh && npm run test:buildIntegrity",
"profiling": "0x ./benchmarks/run.js profiling",
"test": "echo \"[INFO] Generic test cmd not used. See package.json for more specific test run cmds.\"",
Expand Down
26 changes: 17 additions & 9 deletions packages/vm/src/runTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export async function runTx(vm: VM, opts: RunTxOpts): Promise<RunTxResult> {
}
emitEVMProfile(logs.precompiles, 'Precompile performance')
emitEVMProfile(logs.opcodes, 'Opcodes performance')
; (<EVM>vm.evm).clearPerformanceLogs()
;(<EVM>vm.evm).clearPerformanceLogs()
}
}
}
Expand Down Expand Up @@ -225,7 +225,8 @@ async function _runTx(vm: VM, opts: RunTxOpts): Promise<RunTxResult> {
const caller = tx.getSenderAddress()
if (vm.DEBUG) {
debug(
`New tx run hash=${opts.tx.isSigned() ? bytesToHex(opts.tx.hash()) : 'unsigned'
`New tx run hash=${
opts.tx.isSigned() ? bytesToHex(opts.tx.hash()) : 'unsigned'
} sender=${caller}`,
)
}
Expand Down Expand Up @@ -287,7 +288,8 @@ async function _runTx(vm: VM, opts: RunTxOpts): Promise<RunTxResult> {
const baseFeePerGas = block?.header.baseFeePerGas ?? DEFAULT_HEADER.baseFeePerGas!
if (maxFeePerGas < baseFeePerGas) {
const msg = _errorMsg(
`Transaction's ${'maxFeePerGas' in tx ? 'maxFeePerGas' : 'gasPrice'
`Transaction's ${
'maxFeePerGas' in tx ? 'maxFeePerGas' : 'gasPrice'
} (${maxFeePerGas}) is less than the block's baseFeePerGas (${baseFeePerGas})`,
vm,
block,
Expand Down Expand Up @@ -564,8 +566,10 @@ async function _runTx(vm: VM, opts: RunTxOpts): Promise<RunTxResult> {

if (vm.DEBUG) {
debug(
`Running tx=${tx.isSigned() ? bytesToHex(tx.hash()) : 'unsigned'
} with caller=${caller} gasLimit=${gasLimit} to=${to?.toString() ?? 'none'
`Running tx=${
tx.isSigned() ? bytesToHex(tx.hash()) : 'unsigned'
} with caller=${caller} gasLimit=${gasLimit} to=${
to?.toString() ?? 'none'
} value=${value} data=${short(data)}`,
)
}
Expand Down Expand Up @@ -603,7 +607,8 @@ async function _runTx(vm: VM, opts: RunTxOpts): Promise<RunTxResult> {
const { executionGasUsed, exceptionError, returnValue } = results.execResult
debug('-'.repeat(100))
debug(
`Received tx execResult: [ executionGasUsed=${executionGasUsed} exceptionError=${exceptionError !== undefined ? `'${exceptionError.error}'` : 'none'
`Received tx execResult: [ executionGasUsed=${executionGasUsed} exceptionError=${
exceptionError !== undefined ? `'${exceptionError.error}'` : 'none'
} returnValue=${short(returnValue)} gasRefund=${results.gasRefund ?? 0} ]`,
)
}
Expand Down Expand Up @@ -823,7 +828,8 @@ async function _runTx(vm: VM, opts: RunTxOpts): Promise<RunTxResult> {
await vm._emit('afterTx', event)
if (vm.DEBUG) {
debug(
`tx run finished hash=${opts.tx.isSigned() ? bytesToHex(opts.tx.hash()) : 'unsigned'
`tx run finished hash=${
opts.tx.isSigned() ? bytesToHex(opts.tx.hash()) : 'unsigned'
} sender=${caller}`,
)
}
Expand Down Expand Up @@ -883,8 +889,10 @@ export async function generateTxReceipt(
let receipt
if (vm.DEBUG) {
debug(
`Generate tx receipt transactionType=${tx.type
} cumulativeBlockGasUsed=${cumulativeGasUsed} bitvector=${short(baseReceipt.bitvector)} (${baseReceipt.bitvector.length
`Generate tx receipt transactionType=${
tx.type
} cumulativeBlockGasUsed=${cumulativeGasUsed} bitvector=${short(baseReceipt.bitvector)} (${
baseReceipt.bitvector.length
} bytes) logs=${baseReceipt.logs.length}`,
)
}
Expand Down
Loading

0 comments on commit 5ba37f3

Please sign in to comment.