Skip to content

Commit

Permalink
Yet a better description
Browse files Browse the repository at this point in the history
  • Loading branch information
GNSPS committed Aug 19, 2018
1 parent d8e1f2c commit 4924648
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ So do this:
npm uninstall -g truffle && npm install -g truffle@next
```

If you just want to test the 2DProxy on a contract of your own without hacking that much and getting these artifacts deployed automagically just duplicate the file you want proxied into `contracts/2dproxy/` and two artifacts will be created automatically for you: `<contract_name>_ctor.json` and `<contract_name>_runtime.json` which can then be imported normally into Truffle deployments/tests like `const <contract_name>_ctor = artifacts.require("<contract_name>_ctor");`. 😄
If you just want to test the 2DProxy on a contract of your own without hacking that much and getting these artifacts deployed automagically just duplicate the file you want proxied into `contracts/2dproxy/`.

And then run:

Expand All @@ -71,6 +71,8 @@ truffle compile
truffle migrate
```

Two artifacts will then be created for you: `<contract_name>_ctor.json` and `<contract_name>_runtime.json` which can then be imported normally into Truffle deployments/tests like `const <contract_name>_ctor = artifacts.require("<contract_name>_ctor");`. 😄

-----

There are also two relevant scripts in `package.json`: `prepare` & `prepare:optimized`. These are not necessary to test this in a local environment, though, use them just when hacking away!
Expand Down

0 comments on commit 4924648

Please sign in to comment.