omgnetwork / plasma-mvp

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

omg sendtx does not increase the ether of receiver after withdrawal #214

Closed victoryeo closed 5 years ago

victoryeo commented 5 years ago

Issue Type

[x] bug report
[ ] feature request

Current Behavior

After i call omg deposit, sendtx, submitblock, withdrawdeposit, the receiver does not see increase in ether in its account

Expected Behavior

the receiver should see increase in ether in its account

Steps to Reproduce

  1. omg deposit 100 0xfd02EcEE62797e75D86BCff1642EB0844afB28c7
  2. omg sendtx 1 0 0 0 0 0 0x0 0xfd02EcEE62797e75D86BCff1642EB0844afB28c7 50 0x4B3eC6c9dC67079E82152d6D55d8dd96a8e6AA26 45 3bb369fecdc16b93b99514d8ed9c2e87c5824cf4a6a98d2e8e91b7dd0c063304
  3. omg submitblock 3bb369fecdc16b93b99514d8ed9c2e87c5824cf4a6a98d2e8e91b7dd0c063304
  4. omg withdrawdeposit 0xfd02EcEE62797e75D86BCff1642EB0844afB28c7 1 100

Suggested Fix

Motivation for Change

in geth console that connects to ganache-cli, we can see the the receiver account, web3.eth.accounts[1], does not see increase in ether.

web3.eth.accounts ["0xfd02ecee62797e75d86bcff1642eb0844afb28c7", "0x4b3ec6c9dc67079e82152d6d55d8dd96a8e6aa26", "0xda20a48913f9031337a5e32325f743e8536860e2", "0xf6d8982698dcc46b8e96e34bc2bf3c97302b9923", "0x2d75468c0cafa9d41fc5bf3cca6c292a3cc03d94", "0xf05b4b746aad830062505ad0cfd3619917484e46", "0x81a9bfa79598f1536b4918a6556e9855c5e141d5", "0xa669513ad878cc0891d8c305cc21903068a9afe9", "0xc3aae3a9be258bd485105ef81eb0d5b677ee26fd", "0xb9db71c2d02a1b30dfe29c90738b3228dd9d2ec2"] web3.eth.getBalance(web3.eth.accounts[0]) 99998667359999999900 web3.eth.getBalance(web3.eth.accounts[1]) 100000000000000000000

System Specs