Skip to content

Commit a8e429a

Browse files
committed
revert: deletion of Permit return and addToast
1 parent 1005e2c commit a8e429a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/hooks/walletConnect/walletConnectV2.js

+6
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,12 @@ export default function useWalletConnectV2({
391391

392392
return
393393
}
394+
// Regular Permit (EIP-2612) is not supported by SCWs, because it requires a signature from the wallet
395+
// and ERC-20 token contracts don't implement EIP-1271.
396+
addToast('dApp tried to sign a token permit which does not support Smart Wallets.', {
397+
error: true
398+
})
399+
return
394400
}
395401
} else if (method === 'wallet_addEthereumChain') {
396402
const incomingChainId = wcRequest.params[0]

0 commit comments

Comments
 (0)