omgnetwork / plasma-mvp

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

cannot run omg deposit #210

Closed victoryeo closed 5 years ago

victoryeo commented 5 years ago

Issue Type

[x] bug report
[ ] feature request

Current Behavior

When i do omg deposit 100 0xfd02EcEE62797e75D86BCff1642EB0844afB28c7, there is an error:

ValueError: {'message': 'Attempting to run transaction which calls a contract function, but recipient address 0xA3B2a1804203b75b494028966C0f62e677447A39 is not a contract address', 'code': -32000, 'data': {'stack': 'r: Attempting to run transaction which calls a contract function, but recipient address 0xA3B2a1804203b75b494028966C0f62e677447A39 is not a contract address\n at /usr/local/lib/node_modules/ganache-cli/build/cli.node.js:149:77112\n

Expected Behavior

Please tell us how to get root contract address

Steps to Reproduce

  1. make child-chain
  2. omg deposit 100 0xfd02EcEE62797e75D86BCff1642EB0844afB28c7

Suggested Fix

Motivation for Change

could not use the plasma mvp

System Specs

macbook pro

victoryeo commented 5 years ago

the solutions is: after you deploy the root chain contract, using make root-chain, you have to copy the root chain contract address, to the file plasma_core/constants.py, to the field CONTRACT_ADDRESS = ''