File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
modules/sdk-core/src/bitgo/wallet Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments