Fix Token Sale Wallet Errors
Budget: $30 – $250 USD
The token-sale site I launched a few years ago was running smoothly until recently. Now any attempt to connect a wallet throws the error you see here: https://imgur.com/a/t6uC2N3. The same issue appears on the admin panel, so both the public buy page and the dashboard need the same repair.
Environment
• Front-end already coded (React + Web3 stack)
• WalletConnect is the connection layer in use
• Buyers pay with USDT on BSC
• The smart contract itself is unchanged and still verified on-chain
What I need fixed
1. Restore reliable wallet connection via WalletConnect for both the main sale page and the admin panel.
2. Ensure the USDT purchase flow prompts an automatic approve() call the first time a buyer interacts, then proceeds to buyTokens(...) only after approval succeeds. Right now it skips the approval step and the transaction fails.
Acceptance
• I can connect with WalletConnect from a mobile wallet without console errors.
• The first click on “Buy with USDT” triggers approve(), shows the correct gas prompt, and on confirmation immediately executes the buy.
• Subsequent buys skip the approval if allowance is already set.
• All changes compile cleanly and are committed with clear comments so I can merge them back into my repo.
If you have solid Web3.js / Ethers.js troubleshooting experience and can turn this around quickly, let’s get started today.
Environment
• Front-end already coded (React + Web3 stack)
• WalletConnect is the connection layer in use
• Buyers pay with USDT on BSC
• The smart contract itself is unchanged and still verified on-chain
What I need fixed
1. Restore reliable wallet connection via WalletConnect for both the main sale page and the admin panel.
2. Ensure the USDT purchase flow prompts an automatic approve() call the first time a buyer interacts, then proceeds to buyTokens(...) only after approval succeeds. Right now it skips the approval step and the transaction fails.
Acceptance
• I can connect with WalletConnect from a mobile wallet without console errors.
• The first click on “Buy with USDT” triggers approve(), shows the correct gas prompt, and on confirmation immediately executes the buy.
• Subsequent buys skip the approval if allowance is already set.
• All changes compile cleanly and are committed with clear comments so I can merge them back into my repo.
If you have solid Web3.js / Ethers.js troubleshooting experience and can turn this around quickly, let’s get started today.