Skip to content

Commit 326d96b

Browse files
authored
Fix import reference on coverage section (#99)
1 parent 370f966 commit 326d96b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Upgrades.upgradeBeacon(beacon, "MyContractV2.sol");
230230
To enable code coverage reports with `forge coverage`, use the following deployment pattern in your tests: instantiate your implementation contracts directly and use the `UnsafeUpgrades` library. For example:
231231
```solidity
232232
address implementation = address(new MyContract());
233-
address proxy = Upgrades.deployUUPSProxy(
233+
address proxy = UnsafeUpgrades.deployUUPSProxy(
234234
implementation,
235235
abi.encodeCall(MyContract.initialize, ("arguments for the initialize function"))
236236
);

docs/modules/pages/foundry-upgrades.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Upgrades.upgradeProxy(proxy, "MyContract.sol", "", opts);
256256
To enable code coverage reports with `forge coverage`, use the following deployment pattern in your tests: instantiate your implementation contracts directly and use the `UnsafeUpgrades` library. For example:
257257
```solidity
258258
address implementation = address(new MyContract());
259-
address proxy = Upgrades.deployUUPSProxy(
259+
address proxy = UnsafeUpgrades.deployUUPSProxy(
260260
implementation,
261261
abi.encodeCall(MyContract.initialize, ("arguments for the initialize function"))
262262
);

0 commit comments

Comments
 (0)