You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/source/docs/contracts_configuration.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -336,13 +336,13 @@ deploy: {
336
336
337
337
## Proxy Contract Support
338
338
339
-
Proxy contracts are powerful tools usually used in more complex Dapps. They can be used for contracts that can be upgraded or to alleviate the deploy cost of multiple instances of a contract.
339
+
Proxy smart contracts are powerful tools usually used in more complex Dapps. They can be used for smart contracts that can be upgraded or to alleviate the deploy cost of multiple instances of a contract.
340
340
341
341
However, interacting with Proxy contracts is usually difficult, because you have to point the Base contract to the address of the Proxy for it to work.
342
342
343
-
Not anymore! Embark now supports a contract configuration named `forProxy`.
343
+
Not anymore! Embark now supports a smart contract configuration named `proxyFor`.
344
344
345
-
With it, you can specify that a Proxy contract is, well, a proxy *for* another one. Here's an example:
345
+
With it, you can specify that a Proxy smart contract is, well, a proxy *for* another one. Here's an example:
346
346
347
347
```javascript
348
348
deploy: {
@@ -362,11 +362,11 @@ deploy: {
362
362
363
363
With this configuration, our `ContractInstance` is an `instanceOf``Proxy` and a `proxyFor``BaseContract`.
364
364
This is why we point to `BaseContract` in the `ContractInstance` arguments.
365
-
The arguments themselves depend on the implementations of your `BaseContract` and `Proxy`contract.
365
+
The arguments themselves depend on the implementations of your `BaseContract` and `Proxy`smart contracts.
366
366
367
-
Note that you could have used `Proxy` itself as a `proxyFor``BaseContract`, but it's usually more intuitive to use `instanceOf` and then resolve the contract instance with the new name you gave it (`ContractInstance` in this case).
367
+
Note that you could have used `Proxy` itself as a `proxyFor``BaseContract`, but it's usually more intuitive to use `instanceOf` and then resolve the smart contract instance with the new name you gave it (`ContractInstance` in this case).
368
368
369
-
Once the contracts are deployed, all you have to do is:
369
+
Once the smart contracts are deployed, all you have to do is:
370
370
371
371
```
372
372
import ContractInstance from 'path/to/artifacts/contracts/ContractInstance';
0 commit comments