Skip to content

Commit db4a2ff

Browse files
Merge pull request #7354 from BitGo/COIN-6191
fix: bug fix in wallet initialization for canton
2 parents e41d011 + b55fa9b commit db4a2ff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3326,7 +3326,7 @@ export class Wallet implements IWallet {
33263326
* Builds, Signs and sends a transaction that initializes the canton wallet
33273327
* @param params
33283328
*/
3329-
public async sendWalletInitialization(params: PrebuildAndSignTransactionOptions = {}): Promise<WalletInitResult> {
3329+
public async sendWalletInitialization(params: PrebuildTransactionOptions = {}): Promise<WalletInitResult> {
33303330
if (!this.baseCoin.requiresWalletInitializationTransaction()) {
33313331
throw new Error(`Wallet initialization is not required for ${this.baseCoin.getFullName()}`);
33323332
}
@@ -3345,9 +3345,6 @@ export class Wallet implements IWallet {
33453345
...params,
33463346
prebuildTx,
33473347
};
3348-
if (typeof params.prebuildTx === 'string' || params.prebuildTx?.buildParams?.type !== 'createAccount') {
3349-
throw new Error('Invalid build of wallet init');
3350-
}
33513348
const successfulTxs: PrebuildTransactionResult[] = [];
33523349
const failedTxs = new Array<Error>();
33533350
try {

0 commit comments

Comments
 (0)