diff --git a/modules/sdk-core/src/bitgo/staking/stakingWallet.ts b/modules/sdk-core/src/bitgo/staking/stakingWallet.ts index 7f2836445e..b10e67fceb 100644 --- a/modules/sdk-core/src/bitgo/staking/stakingWallet.ts +++ b/modules/sdk-core/src/bitgo/staking/stakingWallet.ts @@ -18,7 +18,7 @@ import { ClaimRewardsOptions, } from './iStakingWallet'; import { BitGoBase } from '../bitgoBase'; -import { IWallet, PrebuildTransactionResult } from '../wallet'; +import { IWallet, PrebuildTransactionOptions, PrebuildTransactionResult } from '../wallet'; import { ITssUtils, RequestTracer, TssUtils } from '../utils'; export class StakingWallet implements IStakingWallet { @@ -221,8 +221,12 @@ export class StakingWallet implements IStakingWallet { * @param transaction */ async prebuildSelfManagedStakingTransaction(transaction: StakingTransaction): Promise { - const builtStakingTransaction = await this.build(transaction); - const buildParams = builtStakingTransaction.transaction.buildParams; + let buildParams: PrebuildTransactionOptions | undefined; + if ((this.wallet.baseCoin.supportsTss() && this.wallet.baseCoin.getFamily() !== 'eth') || this.isEthTss) { + buildParams = (await this.build(transaction)).transaction.buildParams; + } else { + buildParams = (await this.expandBuildParams(transaction)).buildParams; + } const formattedParams = { ...buildParams, coin: this.coin,