File tree Expand file tree Collapse file tree
packages/wallets/src/signers/non-custodial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ export abstract class NonCustodialSigner implements Signer {
180180 return { promise, resolve : resolvePromise , reject : rejectPromise } ;
181181 }
182182
183- private async sendMessageWithOtp ( ) : Promise < void > {
183+ private async sendMessageWithOtp ( ) {
184184 const handshakeParent = await this . getTEEConnection ( ) ;
185185 const authId = this . getAuthId ( ) ;
186186 const response = await handshakeParent . sendAction ( {
@@ -219,7 +219,7 @@ export abstract class NonCustodialSigner implements Signer {
219219 return `phone:${ this . config . phone } ` ;
220220 }
221221
222- private async verifyOtp ( encryptedOtp : string ) : Promise < void > {
222+ private async verifyOtp ( encryptedOtp : string ) {
223223 let response : SignerOutputEvent < "complete-onboarding" > ;
224224 try {
225225 const handshakeParent = await this . getTEEConnection ( ) ;
@@ -243,9 +243,8 @@ export abstract class NonCustodialSigner implements Signer {
243243 } catch ( err ) {
244244 console . error ( "[verifyOtp] Error sending OTP validation request:" , err ) ;
245245 this . _needsAuth = true ;
246- const error = err as Error ;
247- this . _authPromise ?. reject ( error ) ;
248- throw error ;
246+ this . _authPromise ?. reject ( err as Error ) ;
247+ throw err ;
249248 }
250249
251250 if ( response ?. status === "success" ) {
You can’t perform that action at this time.
0 commit comments