Skip to content

docs: add troubleshooting guide for non-standard ERC-20 token approvals - #646

Open
iborazzi wants to merge 2 commits into
inkonchain:mainfrom
iborazzi:fix/troubleshooting-token-approvals
Open

docs: add troubleshooting guide for non-standard ERC-20 token approvals#646
iborazzi wants to merge 2 commits into
inkonchain:mainfrom
iborazzi:fix/troubleshooting-token-approvals

Conversation

@iborazzi

Copy link
Copy Markdown

Summary

This PR adds a dedicated Troubleshooting section to the main documentation (README.md) addressing common issues with non-standard ERC-20 token approvals on Ink mainnet (such as approve(spender, 0) failing with an "internal error" due to specific token contract implementations).

Problem Addressed

  • Users interacting with certain non-standard tokens (like specific mainnet tokens where direct resetting to 0 fails while an active allowance exists) often encounter unexpected transaction reverts or wallet "internal error" warnings.
  • Providing a clear troubleshooting note helps developers and users understand whether the behavior stems from contract-level specifics rather than network/infra issues.

Changes Made

  • Added a new subsection: Troubleshooting: Non-Standard ERC-20 Tokens & Approvals.
  • Outlined potential contract implementation nuances.
  • Provided actionable workarounds (such as setting an intermediate lower allowance value or inspecting token interfaces via Blockscout).

@iborazzi
iborazzi force-pushed the fix/troubleshooting-token-approvals branch from 23205ee to 76a9d0d Compare August 25, 2026 07:57
@iborazzi
iborazzi force-pushed the fix/troubleshooting-token-approvals branch from 76a9d0d to e2acfe3 Compare August 25, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant