omgnetwork / plasma-mvp

OmiseGO's research implementation of Minimal Viable Plasma
MIT License
561 stars 158 forks source link

command omg withdraw error #196

Closed dcb9 closed 5 years ago

dcb9 commented 5 years ago

The method block.merklize_transaction_set() has been removed in this commit https://github.com/omisego/plasma-mvp/commit/5d3f83c53c024d8893784e2fe399869a3c7c4b63#diff-0dbc4548100060d5dcfd83720bd9c081L33, but the cli.py hasn't updated properly.


omg withdraw 1000 0 0 3bb369fecdc16b93b99514d8ed9c2e87c5824cf4a6a98d2e8e91b7dd0c063304
Traceback (most recent call last):
 File "/usr/local/bin/omg", line 11, in <module>
  ... ... 
 File "/usr/local/lib/python3.6/site-packages/plasma-0.0.0-py3.6.egg/plasma/cli/cli.py", line 119, in withdraw
   block.merklize_transaction_set()
AttributeError: 'Block' object has no attribute 'merklize_transaction_set'

the sender of the transaction must be ChecksumAddress.

omg withdraw 1000 0 0 3bb369fecdc16b93b99514d8ed9c2e87c5824cf4a6a98d2e8e91b7dd0c063304
Traceback (most recent call last):
  File "/usr/local/bin/omg", line 11, in <module>
    load_entry_point('plasma==0.0.0', 'console_scripts', 'omg')()
   ... ...
  File "/usr/local/lib/python3.6/site-packages/plasma-0.0.0-py3.6.egg/plasma/cli/cli.py", line 129, in withdraw
    client.withdraw(blknum, txindex, oindex, tx, proof, sigs)
  File "/usr/local/lib/python3.6/site-packages/plasma-0.0.0-py3.6.egg/plasma/client/client.py", line 53, in withdraw
    'from': '0x' + tx.newowner1.hex(),
   ... ... 
  File "/usr/local/lib/python3.6/site-packages/web3-4.5.0-py3.6.egg/web3/utils/normalizers.py", line 124, in abi_address_to_hex
    validate_address(data)
  File "/usr/local/lib/python3.6/site-packages/web3-4.5.0-py3.6.egg/web3/utils/validation.py", line 163, in validate_address
    value,
web3.exceptions.InvalidAddress: ('Web3.py only accepts checksum addresses. The software that gave you this non-checksum address should be considered unsafe, please file it as a bug on their platform. Try using an ENS name instead. Or, if you must accept lower safety, use Web3.toChecksumAddress(lower_case_address).', '0xfd02ecee62797e75d86bcff1642eb0844afb28c7')