Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MyERC20/backend/scripts/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ async function delayFor(ms: number) {
async function main() {
const contractAddress = "0x69798f4ACcc0aA70739F90115196b26732cd3278";

const TokeContact = await ethers.getContractFactory("MyERC20Token");
const contract = await TokeContact.attach(contractAddress) as any;
const TokenContract = await ethers.getContractFactory("MyERC20Token");
const contract = await TokenContract.attach(contractAddress) as any;

// contract.on("*", (event) => {
// console.log(event);
Expand Down
4 changes: 2 additions & 2 deletions MyERC20/backend/scripts/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { ethers } from "hardhat";
async function main() {
const contractAddress = "0x69798f4ACcc0aA70739F90115196b26732cd3278";

const TokeContact = await ethers.getContractFactory("MyERC20Token");
const contract = await TokeContact.attach(contractAddress) as any;
const TokenContract = await ethers.getContractFactory("MyERC20Token");
const contract = await TokenContract.attach(contractAddress) as any;

// read basic info
console.log("Contract name:", await contract.name());
Expand Down