Skip to content

Commit 0461fa0

Browse files
jrainvilleiurimatias
authored andcommitted
fix(@embar/site): fix proxyFor docs
Change to smart contract and fix forProxy -> proxyFor
1 parent e271ceb commit 0461fa0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

site/source/docs/contracts_configuration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,13 @@ deploy: {
336336

337337
## Proxy Contract Support
338338

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.
340340

341341
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.
342342

343-
Not anymore! Embark now supports a contract configuration named `forProxy`.
343+
Not anymore! Embark now supports a smart contract configuration named `proxyFor`.
344344

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:
346346

347347
```javascript
348348
deploy: {
@@ -362,11 +362,11 @@ deploy: {
362362

363363
With this configuration, our `ContractInstance` is an `instanceOf` `Proxy` and a `proxyFor` `BaseContract`.
364364
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.
366366

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).
368368

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:
370370

371371
```
372372
import ContractInstance from 'path/to/artifacts/contracts/ContractInstance';

0 commit comments

Comments
 (0)