tokamak-network / plasma-evm-contracts

Plasma EVM contracts for Tokamak Network
21 stars 12 forks source link

reverted when tried to stake all balance of operator address #36

Open ggs134 opened 4 years ago

ggs134 commented 4 years ago

Whenever tried to make stake transaction which contains all the TON balance of operator, it reverted.

https://rinkeby.etherscan.io/tx/0xa8be665fd473754e25fb2647038d2c3dcefc0efb3bfaccba63c46b609db3236e

https://rinkeby.etherscan.io/tx/0xa6c2ef5ace2751c0a7ea3ae6cad52df8c129283025aeea11ababcfaa418c3ab5

https://rinkeby.etherscan.io/tx/0xc2cbdee9df8004c4f96a6b5cbf83aaadac10b7822cda66889300883c3d4496d1

#when 0x6ea443ad5430684f7b8353cd8ad50d1e97d886d1's TON balance is 1000
ubuntu@ip-172-31-29-177:~/plasma-evm$ build/bin/geth --nousb staking stake-ton 1000.0             --datadir ./operator             --rootchain.url wss://rinkeby.infura.io/ws/v3/d738213eecc341feb0bf0021390c75e4             --unlock 0x6ea443ad5430684f7b8353cd8ad50d1e97d886d1             --password pwd.pass             --rootchain.sender 0x6ea443ad5430684f7b8353cd8ad50d1e97d886d1             --rootchain.gasprice 10000000000
INFO [05-13|03:52:29.487] Maximum peer count                       ETH=50 LES=0 total=50
INFO [05-13|03:52:29.488] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [05-13|03:52:30.591] Set options for submitting a block       mingaspirce=1000000000 maxgasprice=100000000000 resubmit=0s
INFO [05-13|03:52:31.525] Unlocked account                         address=0x6ea443ad5430684f7b8353cD8Ad50D1e97d886d1INFO [05-13|03:52:31.525] Root chain transaction sender found      address=0x6ea443ad5430684f7b8353cD8Ad50D1e97d886d1INFO [05-13|03:52:32.145] Allocated cache and file handles         database=/home/ubuntu/plasma-evm/operator/geth/stakingdata cache=16.00MiB handles=16
INFO [05-13|03:52:32.160] Using manager contracts                  TON=0x3A4e4F7Da26fd2B19cE0e2634906A3BB83cfF3E9 WTON=0x981B2533528145e593C574fa20e54f9a55fbeee9 DepositManager=0x5EEd93B0a36b318A04825E326a0fa834E78fF74D RootChainRegistry=0x1d5F6Ac3aE4acB9c4e0C40E03D73B02b84427604 SeigManager=0x51b9E54A85F6ac61Bd281270aAc1Ce09Cc29554d PowerTON=0x63F2A55b025865DE4c647c40dA5EebD734b75F2a
Transaction reverted: 0xc2cbdee9df8004c4f96a6b5cbf83aaadac10b7822cda66889300883c3d4496d1
shingonu commented 4 years ago

in case that TON balance is 999999999999999999999049957000:

I think we should display TON(or WTON) amount using small unit in plasma-evm balance cmd.