diff --git a/modules/sdk-coin-canton/src/canton.ts b/modules/sdk-coin-canton/src/canton.ts index 6fad9677a1..0a1d184d72 100644 --- a/modules/sdk-coin-canton/src/canton.ts +++ b/modules/sdk-coin-canton/src/canton.ts @@ -245,8 +245,8 @@ export class Canton extends BaseCoin { if (params.txRequestId) { intent.txRequestId = params.txRequestId; } - if (params.contractId) { - intent.contractId = params.contractId; + if (params.transferOfferId) { + intent.transferOfferId = params.transferOfferId; } } } diff --git a/modules/sdk-core/src/bitgo/utils/mpcUtils.ts b/modules/sdk-core/src/bitgo/utils/mpcUtils.ts index b0c21776c2..f116cd5635 100644 --- a/modules/sdk-core/src/bitgo/utils/mpcUtils.ts +++ b/modules/sdk-core/src/bitgo/utils/mpcUtils.ts @@ -142,7 +142,7 @@ export abstract class MpcUtils { } if (params.intentType === 'transferOfferWithdrawn' && baseCoin.getFamily() === 'canton') { - assert(params.contractId, `'contractId' is required parameter for ${params.intentType} intent`); + assert(params.transferOfferId, `'transferOfferId' is required parameter for ${params.intentType} intent`); } if ( diff --git a/modules/sdk-core/src/bitgo/utils/tss/baseTypes.ts b/modules/sdk-core/src/bitgo/utils/tss/baseTypes.ts index b0fb098557..2277a879ba 100644 --- a/modules/sdk-core/src/bitgo/utils/tss/baseTypes.ts +++ b/modules/sdk-core/src/bitgo/utils/tss/baseTypes.ts @@ -270,7 +270,7 @@ export interface PrebuildTransactionWithIntentOptions extends IntentOptionsBase }; txRequestId?: string; isTestTransaction?: boolean; - contractId?: string; + transferOfferId?: string; /** * Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds). */ @@ -345,7 +345,7 @@ export interface PopulatedIntent extends PopulatedIntentBase { aptosCustomTransactionParams?: aptosCustomTransactionParams; txRequestId?: string; isTestTransaction?: boolean; - contractId?: string; + transferOfferId?: string; /** * Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds). */ diff --git a/modules/sdk-core/src/bitgo/wallet/iWallet.ts b/modules/sdk-core/src/bitgo/wallet/iWallet.ts index 750bb80224..5c91a829d5 100644 --- a/modules/sdk-core/src/bitgo/wallet/iWallet.ts +++ b/modules/sdk-core/src/bitgo/wallet/iWallet.ts @@ -218,7 +218,7 @@ export interface PrebuildTransactionOptions { }; txRequestId?: string; isTestTransaction?: boolean; - contractId?: string; + transferOfferId?: string; /** * Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds). * Named intentAmount to avoid collision with SendOptions.amount which is string | number. diff --git a/modules/sdk-core/src/bitgo/wallet/wallet.ts b/modules/sdk-core/src/bitgo/wallet/wallet.ts index de1a4386c2..2e08856a2a 100644 --- a/modules/sdk-core/src/bitgo/wallet/wallet.ts +++ b/modules/sdk-core/src/bitgo/wallet/wallet.ts @@ -3719,8 +3719,8 @@ export class Wallet implements IWallet { { reqId, intentType: 'transferOfferWithdrawn', - contractId: params.contractId, - sequenceId: params.contractId, + transferOfferId: params.transferOfferId, + sequenceId: params.transferOfferId, }, apiVersion, params.preview