threefoldfoundation / tfchain

Official implementation of the ThreeFold blockchain
https://explorer.threefoldtoken.com
Apache License 2.0
13 stars 7 forks source link

Converting TFT to ERC20 failed #285

Closed LeeSmet closed 5 years ago

LeeSmet commented 5 years ago

The transaction was created on the TF chain, but the bridge could not push it. Probably caused because the bridge is not added as an owner, as that transaction has failed, see https://ropsten.etherscan.io/tx/0x11eb339ce2523a6f2bd64bc08079ab5c2d3e426af9d733d7a311ae7c820789f2

robvanmieghem commented 5 years ago

WARN [01-21|09:46:27.208] Found convert transacton
INFO [01-21|09:46:27.208] Calling isMintID
INFO [01-21|09:46:27.385] Calling mint function in contract
ERROR[01-21|09:46:27.403] Failed to push mint transaction          error="failed to estimate gas needed: gas required exceeds allowance or always failing transaction"
robvanmieghem commented 5 years ago

AddOwner function to add the bridge as owner was called from a non-owner account, hence failed

robvanmieghem commented 5 years ago

Called addowner again from a good account and restarted the bridge afterwards doingbridgedata/tfchain/testnet/bridge$ rm bridge.json

robvanmieghem commented 5 years ago

WARN [01-21|11:23:28.284] Found erc20 address registration
INFO [01-21|11:23:28.284] Calling isWithdrawalAddress function in contract
INFO [01-21|11:23:28.295] Registered withdrawal address on eth network
INFO [01-21|11:23:29.675] Imported new block headers               count=1  elapsed=8.797ms  number=4867598 hash=d90f0d…9312ad
INFO [01-21|11:23:39.139] Imported new block headers               count=1  elapsed=7.886ms  number=4867599 hash=730965…9c3471
WARN [01-21|11:23:53.225] Found erc20 address registration
INFO [01-21|11:23:53.225] Calling isWithdrawalAddress function in contract
INFO [01-21|11:23:53.233] Registered withdrawal address on eth network
WARN [01-21|11:23:55.499] Found convert transacton
INFO [01-21|11:23:55.499] Calling isMintID
INFO [01-21|11:23:55.501] Created mint transaction on eth network
INFO [01-21|11:24:11.148] Imported new block headers               count=1  elapsed=4.696ms  number=4867600 hash=593fdd…3341bf
WARN [01-21|11:24:44.535] Found convert transacton
INFO [01-21|11:24:44.536] Calling isMintID
INFO [01-21|11:24:44.542] Calling mint function in contract
INFO [01-21|11:24:44.589] Submitted transaction                    fullhash=0xcc5f5480164cd0f973ec7b3ffeb747a3a2e633344f828705eff86890db001927 recipient=0xb821227dBa4Ef9585D31aa494406FD5E47a3db37
INFO [01-21|11:24:44.589] Created mint transaction on eth network
INFO [01-21|11:24:45.014] bridged is up and running...
LeeSmet commented 5 years ago

Successful tx on ethereum: https://ropsten.etherscan.io/tx/0xcc5f5480164cd0f973ec7b3ffeb747a3a2e633344f828705eff86890db001927