Skip to content

Commit 7dccb4c

Browse files
authored
feat: add sequenceId and comment to custom transaction parameters
2 parents 958474f + d8e66e3 commit 7dccb4c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

modules/bitgo/test/v2/unit/wallet.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,6 +2800,8 @@ describe('V2 Wallet:', function () {
28002800
data: 'SGVsbG8gV29ybGQ=',
28012801
},
28022802
];
2803+
const comment = 'Test comment';
2804+
const sequenceId = '123';
28032805

28042806
const prebuildTxWithIntent = sandbox.stub(TssUtils.prototype, 'prebuildTxWithIntent');
28052807
prebuildTxWithIntent.resolves(txRequest);
@@ -2808,13 +2810,17 @@ describe('V2 Wallet:', function () {
28082810
intentType: 'customTx',
28092811
solInstructions,
28102812
recipients,
2813+
comment,
2814+
sequenceId,
28112815
});
28122816

28132817
const txPrebuild = await tssSolWallet.prebuildTransaction({
28142818
reqId,
28152819
recipients,
28162820
type: 'customTx',
28172821
solInstructions,
2822+
comment,
2823+
sequenceId,
28182824
});
28192825

28202826
txPrebuild.should.deepEqual({
@@ -2826,6 +2832,8 @@ describe('V2 Wallet:', function () {
28262832
recipients,
28272833
type: 'customTx',
28282834
solInstructions,
2835+
comment,
2836+
sequenceId,
28292837
},
28302838
feeInfo: {
28312839
fee: 5000,

modules/sdk-core/src/bitgo/wallet/wallet.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3399,6 +3399,8 @@ export class Wallet implements IWallet {
33993399
{
34003400
reqId,
34013401
intentType: 'customTx',
3402+
sequenceId: params.sequenceId,
3403+
comment: params.comment,
34023404
solInstructions: params.solInstructions,
34033405
recipients: params.recipients || [],
34043406
},

0 commit comments

Comments
 (0)