Skip to content

Commit

Permalink
tx: error msg with backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Jan 30, 2024
1 parent 07dd54b commit 96469a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tx/src/baseTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export abstract class BaseTransaction<T extends TransactionType>
if (common) {
if (common.chainId() !== chainIdBigInt) {
const msg = this._errorMsg(
`The chain ID of ${chainIdBigInt} does not match the chain ID of Common (${common.chainId()})`
`The chain ID does not match the chain ID of Common. Got: ${chainIdBigInt}, expected: ${common.chainId}`
)
throw new Error(msg)
}
Expand Down

0 comments on commit 96469a3

Please sign in to comment.