Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scorbajio committed Aug 7, 2024
1 parent 4dd458a commit 5ea9a57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/common/test/chains.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('[Common/Chains]: Initialization / Chain params', () => {
const c = new Common({ chain: Mainnet })
assert.equal(c.chainName(), 'mainnet', 'should initialize with chain name')
assert.equal(c.chainId(), BigInt(1), 'should return correct chain Id')
assert.equal(c.hardfork(), Hardfork.Shanghai, 'should set hardfork to current default hardfork')
assert.equal(c.hardfork(), Hardfork.Cancun, 'should set hardfork to current default hardfork')
assert.equal(
c.hardfork(),
c.DEFAULT_HARDFORK,
Expand Down
4 changes: 2 additions & 2 deletions packages/common/test/customChains.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ describe('[Common]: Custom chains', () => {
},
Mainnet,
)
// Note: default HF of Common is currently Shanghai
// Note: default HF of Common is currently Cancun
// Did not pass any "hardfork" param
assert.equal(c.hardfork(), Hardfork.Shanghai)
assert.equal(c.hardfork(), Hardfork.Cancun)
c.setHardforkBy({
blockNumber: 0,
})
Expand Down

0 comments on commit 5ea9a57

Please sign in to comment.