Closed maxweng closed 6 years ago
We're currently building out a testing language + integration tests to fix this sort of problem. We definitely need to bring the child chain back up to speed with the latest root chain contract. Expect this to be less of an issue as we finalize the MVP contract.
Thanks! Closing as fixed in #91
Although all tests run through without problems for me, some of the client commands, like
deposit
andwithdraw
are broken in the command line. I guess it's because RootChain.sol is updated. I've fixed thedeposit
command, which I changed the line 38 in file plasma/client/client.py from:self.root_chain.deposit(rlp.encode(transaction, UnsignedTransaction), transact={'from': '0x' + transaction.newowner1.hex(), 'value': transaction.amount1})
to:self.root_chain.deposit(transact={'from': '0x' + transaction.newowner1.hex(), 'value': transaction.amount1})
I also tried to fix the
withdraw
command, but gotrevert
error when running against the Ganache-cli. Anyone has a similar problem?