Developers Forum for XinFin XDC Network

Discussion on: Unwanted behavior while using standard XDCPay RPC endpoints and web3 library

Collapse
menezesphill profile image
Phill Menezes Author

To reproduce the error, you can run my example staking dapp locally:

git clone https://github.com/menezesphill/xdc-staking-dapp.git
cd ./xdc-staking-dapp/front-end
Enter fullscreen mode Exit fullscreen mode

Install dependencies:

npm install
Enter fullscreen mode Exit fullscreen mode

and run the app:

npm run dev
Enter fullscreen mode Exit fullscreen mode

I added a faucet button so you can get test tokens and try the dapp for youself, you will get the error whenever you try to Deposit and/or withdraw tokens from the staking card. And only when using standard XDC endpoints (works fine with erpc endpoints).