Skip to content

Commit

Permalink
fix: update 101 templates (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyg0 authored Aug 26, 2024
1 parent 19710ef commit 1e4dcd4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/101/deploy/2-contract-factory/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { deployContract, getWallet } from "../utils";
import { deployContract, getWallet } from "../../utils";
import { ethers } from "ethers";
import { HardhatRuntimeEnvironment } from "hardhat/types";

Expand Down
4 changes: 2 additions & 2 deletions templates/101/deploy/3-proxy-contracts/uups/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Deployer } from "@matterlabs/hardhat-zksync";
import { HardhatRuntimeEnvironment } from "hardhat/types";

// Replace with the address of the proxy contract you want to upgrade
const proxyAddress = "0x60Aa68f9D0D736B9a0a716d04323Ba3b22602840";
const proxyAddress = "YOUR_PROXY_ADDRESS_HERE";

export default async function (hre: HardhatRuntimeEnvironment) {
const wallet = getWallet();
Expand All @@ -30,5 +30,5 @@ export default async function (hre: HardhatRuntimeEnvironment) {
const initTx = await upgradedContract.initializeV2(durationInSeconds);
const receipt = await initTx.wait();

console.log("V2_UUPSCrowdfundingCampaign initialized!", receipt.hash);
console.log("V2_UUPSCrowdfundingCampaign initialized! Transaction Hash: ", receipt.hash);
}
2 changes: 1 addition & 1 deletion templates/101/deploy/4-paymaster/approval/interact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default async function (hre: HardhatRuntimeEnvironment) {
const contract = new ethers.Contract(
await deployedContract.getAddress(),
contractArtifact.abi,
getWallet(LOCAL_RICH_WALLETS[1].privateKey)
getWallet(LOCAL_RICH_WALLETS[0].privateKey)
);
const contributionAmount = ethers.parseEther("0.0001");

Expand Down
2 changes: 1 addition & 1 deletion templates/101/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"scripts": {
"deploy:hello-zksync": "hardhat deploy-zksync --script 1-hello-zksync/deploy.ts",
"deploy:crowdfunding-factory": "hardhat deploy-zksync --script 2-crowdfunding-factory/deploy.ts",
"deploy:crowdfunding-factory": "hardhat deploy-zksync --script 2-contract-factory/deploy.ts",
"test:crowdfunding-campaign": "hardhat test --network hardhat test/1-hello-zksync/CrowdfundingCampaign.test.ts",
"deploy:transparent-proxy": "hardhat deploy-zksync --script 3-proxy-contracts/transparent/deploy.ts",
"upgrade:transparent-proxy": "hardhat deploy-zksync --script 3-proxy-contracts/transparent/upgrade.ts",
Expand Down

0 comments on commit 1e4dcd4

Please sign in to comment.