Skip to content

Commit e077341

Browse files
authored
Fix typo on contract for #16150
1 parent bb09b9a commit e077341

File tree

1 file changed

+1
-1
lines changed
  • public/content/developers/tutorials/optimism-std-bridge-annotated-code

1 file changed

+1
-1
lines changed

public/content/developers/tutorials/optimism-std-bridge-annotated-code/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ Only cells that are set to a different value are written to storage.
572572
```
573573

574574
To want to be able to upgrade this contract without having to copy all the variables in the storage.
575-
To do that we use a [`Proxy`](https://docs.openzeppelin.com/contracts/3.x/api/proxy), a contract that uses [`delegatecall`](https://solidity-by-example.org/delegatecall/) to transfer calls to a separate contact whose address is stored by the proxy contract (when you upgrade you tell the proxy to change that address).
575+
To do that we use a [`Proxy`](https://docs.openzeppelin.com/contracts/3.x/api/proxy), a contract that uses [`delegatecall`](https://solidity-by-example.org/delegatecall/) to transfer calls to a separate contract whose address is stored by the proxy contract (when you upgrade you tell the proxy to change that address).
576576
When you use `delegatecall` the storage remains the storage of the _calling_ contract, so the values of all the contract state variables are unaffected.
577577

578578
One effect of this pattern is that the storage of the contract that is the _called_ of `delegatecall` is not used and therefore the constructor values passed to it do not matter.

0 commit comments

Comments
 (0)