Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Patched address bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvin Fichter committed Jul 11, 2018
1 parent 595b7e8 commit cb6bc09
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -15,7 +15,7 @@ root-chain:

.PHONY: child-chain
child-chain:
python plasma/child_chain/server.py
PYTHONPATH=. python plasma/child_chain/server.py

.PHONY: clean
clean: clean-build clean-pyc
Expand Down
6 changes: 3 additions & 3 deletions plasma/child_chain/server.py
Expand Up @@ -2,11 +2,11 @@
from werkzeug.serving import run_simple
from jsonrpc import JSONRPCResponseManager, dispatcher
from plasma.child_chain.child_chain import ChildChain
from plasma.config import plasma_config
from plasma.root_chain.deployer import Deployer
from plasma_core.constants import CONTRACT_ADDRESS, AUTHORITY

root_chain = Deployer().get_contract_at_address("RootChain", plasma_config['ROOT_CHAIN_CONTRACT_ADDRESS'], concise=False)
child_chain = ChildChain(plasma_config['AUTHORITY'], root_chain)
root_chain = Deployer().get_contract_at_address("RootChain", CONTRACT_ADDRESS, concise=False)
child_chain = ChildChain(bytes.fromhex(AUTHORITY['address'][2:]), root_chain)


@Request.application
Expand Down
5 changes: 0 additions & 5 deletions plasma/config.py

This file was deleted.

2 changes: 2 additions & 0 deletions plasma_core/constants.py
@@ -1,5 +1,7 @@
from ethereum import utils as u

CONTRACT_ADDRESS = '0xA3B2a1804203b75b494028966C0f62e677447A39'

AUTHORITY = {
'address': '0xfd02EcEE62797e75D86BCff1642EB0844afB28c7',
'key': u.normalize_key(b'3bb369fecdc16b93b99514d8ed9c2e87c5824cf4a6a98d2e8e91b7dd0c063304')
Expand Down

0 comments on commit cb6bc09

Please sign in to comment.