keep-network / tbtc-dapp

Deposit BTC and redeem TBTC
http://dapp.test.tbtc.network/
MIT License
33 stars 31 forks source link

tBTC dapp, redemption - error at step 5, gas required exceeds allowance (8000029) or always failing transaction #282

Open saltypalo opened 4 years ago

saltypalo commented 4 years ago

Description:

Everything goes smoothly in the redemption process, until step 5: I can see this error (screenshot below) "gas required exceeds allowance (8000029) or always failing transaction"

while tBTC bot sends notification on successful transaction https://ropsten.etherscan.io/tx/0x81efec088375eddcaf51da221f74a0f0271410af81bbee50c7210c6816fe2702

15 minutes passed and there's no indication of testBTC transaction on my wallet, while there's less tBTC on my ETH wallet.

Steps to reproduce the behavior:

  1. Go to tBTC dapp redemption process
  2. Successfully pass steps 1-4
  3. See error at step 5

Expected behavior:

Receiving testnetBTC transaction on my wallet.

Environment details:

OS: macOS Mojave 10.14.6 (18G5033) Web Browser: Google Chrome, 83.0.4103.106 (Official Build) (64-bit) Wallet: Metamask (Chrome extension), Version 8.0.4

Screenshots

Screen Shot 2020-07-19 at 17 57 23
Shadowfiend commented 4 years ago

If you get a chance to reproduce this, could you send us the URL on the tBTC dApp where you saw this?

saltypalo commented 4 years ago

@Shadowfiend sure, will try to, but might not encounter this anymore, since only got 4 more 0.01 deposits to redeem

VinnyR commented 4 years ago

I got this error but at step 4/5.

The url was https://dapp.test.tbtc.network/deposit/0x20135a85181b4fbA0E77a9A098e9C626f2614B9d/prove

The last ropsten txid was: 0x4b70e8b97097eb369d6e27783fbc14ca8250272f3a4cad5bfe131f3cfc1fdc2d

I sent 0.5 testnet BTC and I'm not sure how to recover it (I'm not desperate to get it back, but obviously concerning if it was mainnet). The testnet btc txid was: 27b4406573e6185f13ccfcf7e8b3b69296a14c9e2a3333a89e002fff48c7f65b

Log file: dapp.test.tbtc.network-1595646308746.log Screenshot: Annotation 2020-07-25 040445

My environment: Google Chrome 84.0.4147.89 (Official Build) (64-bit) MetaMask Chrome Extension 8.0.5 Windows 10 Pro 64-bit 1909 build 18363.959

VinnyR commented 4 years ago

I managed to complete the process by refreshing the page at

https://dapp.test.tbtc.network/deposit/0x20135a85181b4fbA0E77a9A098e9C626f2614B9d/prove

and I minted the 0.49975 testnet tBTC.

VinnyR commented 4 years ago

My apologies, my previous two comments were in relation to the deposit process, and I just realised this issue was opened for the redemption process.

However I can confirm that I am now getting the same error as the orginal posted issue, on step 5 of the redemption process. I get the error on both units of 1 tBTC (2 x 1 tBTC) that I am trying to redeem. The urls that that the errors appear on are:

https://dapp.test.tbtc.network/deposit/0x1F4A3bf58c60bD9e6d5C3Cf7d0bC7Ce90b70078F/redemption/prove

https://dapp.test.tbtc.network/deposit/0xc87D9da83f0A32bE4802e6CE9346a42ce48686b4/redemption/prove

The app just hangs on this page, the error messages don't show in the app for me, but I can see them in the console log:

MetaMask - RPC Error: gas required exceeds allowance (8000000) or always failing transaction {code: -32000, message: "gas required exceeds allowance (8000000) or always failing transaction"}

Uncaught (in promise) {code: -32000, message: "gas required exceeds allowance (8000000) or always failing transaction"}

I seem to have currently lost the 2 ropsten tBTC while trying to redeem them back for testnet BTC.

Log file: dapp.test.tbtc.network-1595812772493.log

My environment: Google Chrome 84.0.4147.89 (Official Build) (64-bit) MetaMask Chrome Extension 8.0.5 Windows 10 Pro 64-bit 1909 build 18363.959

Shadowfiend commented 4 years ago

This is doubly intriguing because I don't see the issue. If you get a Metamask popup, could you go ahead and submit it and then share the log + a link to the Metamask transaction?

VinnyR commented 4 years ago

A MetaMask popup does indeed appear, I submitted it for the url:

https://dapp.test.tbtc.network/deposit/0x1F4A3bf58c60bD9e6d5C3Cf7d0bC7Ce90b70078F/redemption/prove

However the error message didn't appear this time, the page just hangs at step 5/6 (I waited over 2 hours and nothing appeared).

Transaction ID: 0xcb2f66ad2129821bb30641f3a88c1084e8d2d691937cfa0757fa94b4ad686afb

Console log file: dapp.test.tbtc.network-1595912505652.log

VinnyR commented 4 years ago

I revisited the url:

https://dapp.test.tbtc.network/deposit/0x1F4A3bf58c60bD9e6d5C3Cf7d0bC7Ce90b70078F/redemption/prove

and it instantly went to step 6 'Redemption Complete' and I have received the testnet bitcoin back.

For the other tBTC that I've been trying to redeem, with the url:

https://dapp.test.tbtc.network/deposit/0xc87D9da83f0A32bE4802e6CE9346a42ce48686b4/redemption/prove

it remains stuck at step 5 of the redemption process, and this time the metamask popup didn't appear.

Console log file: dapp.test.tbtc.network-1595968086470.log

Dapp error log file (changed to .txt file so that github would accept it): tbtc-dapp-console-log-1595968120722.json.txt