Skip to content

Commit

Permalink
tx: hardhat E2E error msg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 committed Oct 24, 2021
1 parent e1ec6a0 commit 130b59b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client/test/rpc/eth/sendRawTransaction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ tape(`${method}: call with invalid tx (wrong chain ID)`, async (t) => {
const expectRes = checkError(
t,
PARSE_ERROR,
'serialized tx data could not be parsed (The chain ID does not match the chain ID of Common)'
'serialized tx data could not be parsed'
)
await baseRequest(t, server, req, 200, expectRes)
})
Expand Down
3 changes: 2 additions & 1 deletion packages/tx/src/eip2930Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ export default class AccessListEIP2930Transaction extends BaseTransaction<Access
*/
public errorStr() {
let errorStr = this._getSharedErrorPostfix()
errorStr += ` gasPrice=${this.gasPrice} accessList=${this.accessList.length} (size)`
// Keep ? for this.accessList since this otherwise causes Hardhat E2E tests to fail
errorStr += ` gasPrice=${this.gasPrice} accessList=${this.accessList?.length} (size)`
return errorStr
}

Expand Down

1 comment on commit 130b59b

@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: 130b59b Previous: 125e210 Ratio
Block 9422909 11732 ops/sec (±14.29%) 24466 ops/sec (±1.97%) 2.09
Block 9422914 6913 ops/sec (±20.43%) 17393 ops/sec (±15.60%) 2.52

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

Please sign in to comment.