Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Oct 25, 2023
1 parent 77c94a0 commit 46cff55
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ instance.myFunction();

Upgrade a transparent or UUPS proxy and call an arbitrary function (such as a reinitializer) during the upgrade process:
```
Upgrades.upgradeProxy(transparentProxy, "MyContractV2.sol", abi.encodeCall(MyContractV2.foo, ("arguments for foo")));
Upgrades.upgradeProxy(
transparentProxy,
"MyContractV2.sol",
abi.encodeCall(MyContractV2.foo, ("arguments for foo"))
);
```

Deploy an upgradeable beacon:
Expand All @@ -74,7 +78,10 @@ address beacon = Upgrades.deployBeacon("MyContract.sol", INITIAL_OWNER_ADDRESS_F

Deploy a beacon proxy:
```
address proxy = Upgrades.deployBeaconProxy(beacon, abi.encodeCall(MyContract.initialize, ("arguments for the initialize function")));
address proxy = Upgrades.deployBeaconProxy(
beacon,
abi.encodeCall(MyContract.initialize, ("arguments for the initialize function"))
);
```

Upgrade a beacon:
Expand Down

0 comments on commit 46cff55

Please sign in to comment.