Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Apr 14, 2023
1 parent eb75fcf commit 38a2e7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/client/test/rpc/eth/getTransactionReceipt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ tape(`${method}: call with unknown tx hash`, async (t) => {
})

tape(`${method}: get dataGasUsed/dataGasPrice in blob tx receipt`, async (t) => {
initKZG(kzg, __dirname + '/../../../lib/trustedSetups/devnet4.txt')
try {
// Verified KZG is loaded correctly -- NOOP if throws
initKZG(kzg, __dirname + '/../../../lib/trustedSetups/devnet4.txt')
//eslint-disable-next-line
} catch {}
const gethGenesis = require('../../../../block/test/testdata/4844-hardfork.json')
const common = Common.fromGethGenesis(gethGenesis, {
chain: 'customChain',
Expand Down
1 change: 0 additions & 1 deletion packages/util/src/kzg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ export let kzg: Kzg = {
*/
export function initKZG(kzgLib: Kzg, trustedSetupPath: string) {
kzg = kzgLib

kzg.loadTrustedSetup(trustedSetupPath)
}
1 change: 1 addition & 0 deletions packages/vm/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = function (config) {
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
ignore: ['c-kzg', 'safer-buffer'],
},
},
},
Expand Down

1 comment on commit 38a2e7d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 38a2e7d Previous: b4b1f82 Ratio
Block 9422905 7497 ops/sec (±2.61%) 15827 ops/sec (±1.66%) 2.11
Block 9422906 7382 ops/sec (±3.36%) 15581 ops/sec (±1.93%) 2.11
Block 9422910 7371 ops/sec (±3.11%) 15070 ops/sec (±1.88%) 2.04

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.