Skip to content

Commit 23205ee

Browse files
committed
docs: add troubleshooting guide for non-standard token approvals
1 parent 48b63d7 commit 23205ee

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ Welcome to the official documentation for Ink, Kraken's dedicated DeFi chain.
77
* Bridge assets and acquire testnet funds
88
* Explore tutorials and start building onchain!
99

10+
## Troubleshooting: Non-Standard ERC-20 Tokens & Approvals
11+
If you encounter an "internal error" or transaction failure when attempting to revoke token approvals (such as calling approve(spender, 0) on certain mainnet tokens):
12+
* **Token Contract Implementation:** Some non-standard ERC-20 tokens may throw errors if approve is called directly to 0 while an active non-zero allowance exists.
13+
* **Workarounds:**
14+
* Try setting the allowance to a lower intermediate value before resetting to 0.
15+
* Verify token contract details via Blockscout to ensure compliance with standard interfaces.

0 commit comments

Comments
 (0)