File tree Expand file tree Collapse file tree
packages/wallet/dapp-client/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( / ( 0 x [ 0 - 9 a - f A - 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 } :` ,
You can’t perform that action at this time.
0 commit comments