Skip to content

Commit e344ec1

Browse files
chore: rename contarctId to transferId
TICKET: CHALO-198
1 parent 2e9b566 commit e344ec1

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

modules/sdk-coin-canton/src/canton.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ export class Canton extends BaseCoin {
245245
if (params.txRequestId) {
246246
intent.txRequestId = params.txRequestId;
247247
}
248-
if (params.contractId) {
249-
intent.contractId = params.contractId;
248+
if (params.transferId) {
249+
intent.transferId = params.transferId;
250250
}
251251
}
252252
}

modules/sdk-core/src/bitgo/utils/mpcUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export abstract class MpcUtils {
142142
}
143143

144144
if (params.intentType === 'transferOfferWithdrawn' && baseCoin.getFamily() === 'canton') {
145-
assert(params.contractId, `'contractId' is required parameter for ${params.intentType} intent`);
145+
assert(params.transferId, `'transferId' is required parameter for ${params.intentType} intent`);
146146
}
147147

148148
if (

modules/sdk-core/src/bitgo/utils/tss/baseTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export interface PrebuildTransactionWithIntentOptions extends IntentOptionsBase
270270
};
271271
txRequestId?: string;
272272
isTestTransaction?: boolean;
273-
contractId?: string;
273+
transferId?: string;
274274
}
275275
export interface IntentRecipient {
276276
address: {
@@ -341,7 +341,7 @@ export interface PopulatedIntent extends PopulatedIntentBase {
341341
aptosCustomTransactionParams?: aptosCustomTransactionParams;
342342
txRequestId?: string;
343343
isTestTransaction?: boolean;
344-
contractId?: string;
344+
transferId?: string;
345345
}
346346

347347
export type TxRequestState =

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export interface PrebuildTransactionOptions {
218218
};
219219
txRequestId?: string;
220220
isTestTransaction?: boolean;
221-
contractId?: string;
221+
transferId?: string;
222222
}
223223

224224
export interface PrebuildAndSignTransactionOptions extends PrebuildTransactionOptions, WalletSignTransactionOptions {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3719,8 +3719,8 @@ export class Wallet implements IWallet {
37193719
{
37203720
reqId,
37213721
intentType: 'transferOfferWithdrawn',
3722-
contractId: params.contractId,
3723-
sequenceId: params.contractId,
3722+
transferId: params.transferId,
3723+
sequenceId: params.transferId,
37243724
},
37253725
apiVersion,
37263726
params.preview

0 commit comments

Comments
 (0)