Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ggs134 opened this issue May 13, 2020 · 1 comment
Open

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

ggs134 opened this issue May 13, 2020 · 1 comment
Assignees

Comments

@ggs134
Copy link
Member

ggs134 commented May 13, 2020

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
Copy link
Contributor

shingonu commented May 14, 2020

in case that TON balance is 999999999999999999999049957000:

  • TON balance is 1000 (in fact, value is 999999999999999999999049957000, not 1000000000000000000000000000000)
  • stake-ton 1000.0 (1000000000000000000000000000000)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants