Skip to content

Commit 5488bc5

Browse files
committed
Update README
1 parent 87672a7 commit 5488bc5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lazer/contracts/evm/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ $ forge snapshot
3232

3333
### Anvil
3434

35+
Anvil does not come with CreateX by default. It can be deployed or an RPC which has the contract can be forked. The below command forks an RPC with a functional CreateX contract.
3536
```shell
36-
$ anvil
37+
$ anvil --fork-url "https://eth-sepolia.public.blastapi.io"
3738
```
3839

3940
### Deploy
@@ -42,6 +43,14 @@ $ anvil
4243
$ forge script script/PythLazerDeploy.s.sol --rpc-url <your_rpc_url> --private-key <your_private_key> --broadcast
4344
```
4445

46+
### Upgrade
47+
The UUPSUpgradeable feature adds functions to the cocntract which support upgrading through the use of an UUPS/ERC1967Proxy. A function can be defined to migrate state if needed. Be careful of changing storage slots when upgrading. See [Documentation](https://docs.openzeppelin.com/upgrades-plugins/1.x/writing-upgradeable) for more details.
48+
In addition, the private key is necessary or contracts will be deployed to different addresses than expected.
49+
50+
```shell
51+
$ forge script script/PythLazerDeploy.s.sol --rpc-url <your_rpc_url> --private-key <your_private_key> --broadcast --sig "migrate()"
52+
```
53+
4554
### Cast
4655

4756
```shell

0 commit comments

Comments
 (0)