Skip to content

Commit

Permalink
Merge pull request #5272 from BitGo/BTC-1450.fix-signtx-wallet-param
Browse files Browse the repository at this point in the history
fix(abstract-utxo): pass actual wallet to signTransaction
  • Loading branch information
lcovar authored Dec 15, 2024
2 parents f00ccde + 55caa4a commit 87a80dc
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion modules/sdk-coin-hbar/src/hbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ export class Hbar extends BaseCoin {
* @param params
* @param params.txPrebuild {Object} prebuild object returned by platform
* @param params.prv {String} user prv
* @param params.wallet.addressVersion {String} this is the version of the Algorand multisig address generation format
* @returns Promise<SignedTransaction>
*/
async signTransaction(params: HbarSignTransactionOptions): Promise<SignedTransaction> {
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-trx/src/trx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ export class Trx extends BaseCoin {
* @param params
* @param params.txPrebuild {Object} prebuild object returned by platform
* @param params.prv {String} user prv
* @param params.wallet.addressVersion {String} this is the version of the Algorand multisig address generation format
* @returns Bluebird<SignedTransaction>
*/
async signTransaction(params: TronSignTransactionOptions): Promise<SignedTransaction> {
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-xtz/src/xtz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export class Xtz extends BaseCoin {
* @param params
* @param params.txPrebuild {Object} prebuild object returned by platform
* @param params.prv {String} user prv
* @param params.wallet.addressVersion {String} this is the version of the Algorand multisig address generation format
* @returns Bluebird<SignedTransaction>
*/
async signTransaction(params: Interface.XtzSignTransactionOptions): Promise<SignedTransaction> {
Expand Down
5 changes: 1 addition & 4 deletions modules/sdk-core/src/bitgo/wallet/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2147,10 +2147,7 @@ export class Wallet implements IWallet {
const signingParams = {
...params,
txPrebuild,
wallet: {
// this is the version of the multisig address at wallet creation time
addressVersion: this._wallet.coinSpecific.addressVersion,
},
wallet: this,
keychain: keychains[0],
backupKeychain: keychains.length > 1 ? keychains[1] : null,
bitgoKeychain: keychains.length > 2 ? keychains[2] : null,
Expand Down

0 comments on commit 87a80dc

Please sign in to comment.