Skip to content

Commit c6f28ed

Browse files
authored
Merge pull request #6488 from BitGo/coin-4889
fix(sdk-coin-vet): use expiration variable in tx
2 parents 5c473ab + 88b2765 commit c6f28ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/sdk-coin-vet/src/lib/transaction/transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export class Transaction extends BaseTransaction {
363363
const transactionBody: TransactionBody = {
364364
chainTag: this.chainTag,
365365
blockRef: this.blockRef,
366-
expiration: 64, //move this value to constants
366+
expiration: this.expiration,
367367
clauses: this.clauses,
368368
gasPriceCoef: this.gasPriceCoef,
369369
gas: this.gas,

modules/sdk-coin-vet/test/transactionBuilder/transferBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe('Vet Transfer Transaction', () => {
101101
txBuilder.recipients(testData.recipients);
102102
txBuilder.gas(21000);
103103
txBuilder.nonce('64248');
104-
txBuilder.expiration(64);
104+
txBuilder.expiration(400);
105105
txBuilder.blockRef('0x014ead140e77bbc1');
106106
txBuilder.gasPriceCoef(128);
107107
txBuilder.addFeePayerAddress(testData.feePayer.address);
@@ -117,7 +117,7 @@ describe('Vet Transfer Transaction', () => {
117117
should.equal(toJson.nonce, '64248');
118118
should.equal(toJson.gas, 21000);
119119
should.equal(toJson.gasPriceCoef, 128);
120-
should.equal(toJson.expiration, 64);
120+
should.equal(toJson.expiration, 400);
121121
should.equal(toJson.feePayer, testData.feePayer.address);
122122
});
123123

0 commit comments

Comments
 (0)