Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 6-print-money.js #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 scripts/6-print-money.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const token = sdk.getToken("INSERT_TOKEN_ADDRESS");
// What's the max supply you want to set? 1,000,000 is a nice number!
const amount = 0;
// Interact with your deployed ERC-20 contract and mint the tokens!
await token.mint(amount);
await token.mintToSelf(amount);
const totalSupply = await token.totalSupply();

// Print out how many of our token's are out there now!
console.log("✅ There now is", totalSupply.displayValue, "$HOKAGE in circulation");
} catch (error) {
console.error("Failed to print money", error);
}
})();
})();