From e5736f145fcabad825918761215105a6fa7be475 Mon Sep 17 00:00:00 2001 From: Dotan Schachter Date: Fri, 27 May 2022 14:21:47 -0400 Subject: [PATCH] Update 6-print-money.js token.mint is not a function, change to correct mintToSelf function --- scripts/6-print-money.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/6-print-money.js b/scripts/6-print-money.js index 4b9b1e3..3e56fb6 100644 --- a/scripts/6-print-money.js +++ b/scripts/6-print-money.js @@ -8,7 +8,7 @@ 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! @@ -16,4 +16,4 @@ const token = sdk.getToken("INSERT_TOKEN_ADDRESS"); } catch (error) { console.error("Failed to print money", error); } -})(); \ No newline at end of file +})();