Skip to content

Commit fc6d552

Browse files
fix(dapp-client): remove _refreshExplicitSession use that causes blocked pop up
1 parent 30e1f1a commit fc6d552

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

packages/wallet/dapp-client/src/ChainSessionManager.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -816,19 +816,6 @@ export class ChainSessionManager {
816816
await this.sessionManager.findSignersForCalls(this.wallet.address, this.chainId, calls)
817817
return true
818818
} catch (error) {
819-
if (error instanceof Error && error.message.includes('Signer supporting call is expired')) {
820-
// Extract the expired signer address from the message with address regex
821-
const expiredSignerAddress = error.message.match(/(0x[0-9a-fA-F]{40})/)?.[1]
822-
if (expiredSignerAddress) {
823-
// Refresh the session
824-
await this._refreshExplicitSession(Address.from(expiredSignerAddress))
825-
// Retry the permission check
826-
return this.hasPermission(transactions)
827-
} else {
828-
// Could not parse error message. Rethrow as this shouldn't happen.
829-
throw error
830-
}
831-
}
832819
// An error from findSignersForCalls indicates a permission failure.
833820
console.warn(
834821
`Permission check failed for chain ${this.chainId}:`,

0 commit comments

Comments
 (0)