Skip to content

Commit

Permalink
Merge branch 'main' into merge-main-13-03
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Mar 13, 2024
2 parents 7cd9085 + 900ef61 commit 7b9fc9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/relayedTransactionV2Builder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ describe("test relayed v2 transaction builder", function () {
gasLimit: 0,
chainID: networkConfig.ChainID,
data: new TransactionPayload("getContractConfig"),
version: 2,
});

innerTx.applySignature(await bob.signer.sign(innerTx.serializeForSigning()));
Expand All @@ -84,6 +85,7 @@ describe("test relayed v2 transaction builder", function () {
relayedTxV2.applySignature(await alice.signer.sign(relayedTxV2.serializeForSigning()));

assert.equal(relayedTxV2.getNonce().valueOf(), 37);
assert.equal(relayedTxV2.getVersion().valueOf(), 2);
assert.equal(
relayedTxV2.getData().toString(),
"relayedTxV2@000000000000000000010000000000000000000000000000000000000002ffff@0f@676574436f6e7472616374436f6e666967@fc3ed87a51ee659f937c1a1ed11c1ae677e99629fae9cc289461f033e6514d1a8cfad1144ae9c1b70f28554d196bd6ba1604240c1c1dc19c959e96c1c3b62d0c");
Expand Down
2 changes: 2 additions & 0 deletions src/relayedTransactionV2Builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export class RelayedTransactionV2Builder {
this.innerTransactionGasLimit.valueOf() + this.netConfig.MinGasLimit + this.netConfig.GasPerDataByte * payload.length(),
data: payload,
chainID: this.netConfig.ChainID,
version: this.innerTransaction.getVersion(),
options: this.innerTransaction.getOptions()
});

if (this.relayerNonce) {
Expand Down

0 comments on commit 7b9fc9e

Please sign in to comment.