diff --git a/packages/tx/src/legacyTransaction.ts b/packages/tx/src/legacyTransaction.ts index fa67af06bb..84c2c691c1 100644 --- a/packages/tx/src/legacyTransaction.ts +++ b/packages/tx/src/legacyTransaction.ts @@ -190,7 +190,7 @@ export class Transaction extends BaseTransaction { ] if (this.supports(Capability.EIP155ReplayProtection)) { - values.push(toBuffer(this.common.chainId())) + values.push(bigIntToUnpaddedBuffer(this.common.chainId())) values.push(unpadBuffer(toBuffer(0))) values.push(unpadBuffer(toBuffer(0))) }