Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed May 17, 2024
1 parent fd39779 commit 99c738b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/src/content/ignition/docs/guides/upgradeable-proxies.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const upgradeModule = buildModule("UpgradeModule", (m) => {

This module begins the same way as `ProxyModule`, by getting the account that owns the `ProxyAdmin` contract. We'll use this in a moment to upgrade the proxy.

Next, we use the `m.useModule(...)` method to get the `ProxyAdmin` and proxy contracts from the previous module.
Next, we use the `m.useModule(...)` method to get the `ProxyAdmin` and proxy contracts from the previous module.

Then, we deploy our `DemoV2` contract. This will be the contract that we'll upgrade our proxy to.

Expand All @@ -219,7 +219,6 @@ Lastly, we again return the `ProxyAdmin` and proxy contracts so that we can use
Finally, in the same file, we'll create our module called `DemoV2Module`:

```js

const demoV2Module = buildModule("DemoV2Module", (m) => {
const { proxy } = m.useModule(upgradeModule);

Expand Down Expand Up @@ -281,7 +280,7 @@ describe("Demo Proxy", function () {
expect(await demo.connect(otherAccount).version()).to.equal("1.0.0");
});
});

describe("Upgrading", function () {
it("Should have upgraded the proxy to DemoV2", async function () {
const [owner, otherAccount] = await ethers.getSigners();
Expand Down

0 comments on commit 99c738b

Please sign in to comment.