Skip to content

Commit

Permalink
Merge pull request #4889 from BitGo/SC-351
Browse files Browse the repository at this point in the history
feat(sdk-core): mark buildSignAndSend and expose buildAndSign
  • Loading branch information
noel-bitgo authored Sep 5, 2024
2 parents a7aa00b + 2ef604d commit 5c02c8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/sdk-core/src/bitgo/staking/iStakingWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export interface IStakingWallet {
): Promise<StakingSignedTransaction>;
send(signedTransaction: StakingSignedTransaction): Promise<StakingTransaction>;
buildSignAndSend(signOptions: StakingSignOptions, transaction: StakingTransaction);
buildAndSign(signOptions: StakingSignOptions, transaction: StakingTransaction);
cancelStakingRequest(stakingRequestId: string): Promise<StakingRequest>;
prebuildSelfManagedStakingTransaction(transaction: StakingTransaction): Promise<PrebuildTransactionResult>;
}
3 changes: 2 additions & 1 deletion modules/sdk-core/src/bitgo/staking/stakingWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export class StakingWallet implements IStakingWallet {
}

/**
* @Deprecated use buildAndSign
* Build, sign and send the transaction.
* @param signOptions
* @param transaction
Expand Down Expand Up @@ -237,7 +238,7 @@ export class StakingWallet implements IStakingWallet {
* @param signOptions
* @param transaction
*/
private async buildAndSign(
async buildAndSign(
signOptions: StakingSignOptions,
transaction: StakingTransaction
): Promise<StakingSignedTransaction> {
Expand Down

0 comments on commit 5c02c8c

Please sign in to comment.