Skip to content

Commit 922f45b

Browse files
authored
fix: fix typo in migration guide for hh (#225)
<!-- Thank you for contributing to the ZKsync Docs! Before submitting the PR, please make sure you do the following: - Update your PR title to follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) - Read the [Contributing Guide](https://github.com/matter-labs/zksync-docs/blob/main/CONTRIBUTING.md). - Understand our [Code of Conduct](https://github.com/matter-labs/zksync-docs/blob/main/CODE_OF_CONDUCT.md) - Please delete any unused parts of the template when submitting your PR --> # Description - should be upgradeBeacon instead of upgradeProxy <!-- Please describe what are the changes and what they are solving for in this PR. --> ## Linked Issues <!-- If you have any issues this PR is related to, link them here. --> <!-- Check out https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue on how to automate linking a GitHub Issue to a PR. --> ## Additional context
1 parent a552869 commit 922f45b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/00.build/40.tooling/20.hardhat/20.migrating-to-zksync.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ await boxV2.waitForDeployment();
405405
```typescript [hardhat-zksync-upgradeable]
406406
const upgradableProxyAddress = "UPGRADEABLE_PROXY_ADDRESS";
407407
const boxV2ContractFactory = await hre.ethers.getContractFactory("BoxV2");
408-
const boxV2 = await hre.upgrades.upgradeProxy(upgradableProxyAddress, boxV2ContractFactory);
408+
const boxV2 = await hre.upgrades.upgradeBeacon(upgradableProxyAddress, boxV2ContractFactory);
409409
await boxV2.waitForDeployment();
410410
```
411411

0 commit comments

Comments
 (0)