Skip to content

Commit

Permalink
remove console.error
Browse files Browse the repository at this point in the history
  • Loading branch information
juanbono committed Dec 22, 2023
1 parent 803a32f commit f97c03a
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions ethereum/scripts/deploy-erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ async function deployToken(token: TokenDescription, wallet: Wallet): Promise<Tok
async function approve(token: TokenDescription, wallet: Wallet, spenderAddress: String): Promise<void> {
token.implementation = token.implementation || DEFAULT_ERC20;
const erc20 = (await hardhat.ethers.getContractFactory(token.implementation, wallet)).attach(token.address);
console.error("WALLET ADDRESS");
console.error(wallet.address);
console.error("WALLET PRIVATE KEY");
console.error(wallet._signingKey().privateKey);
await erc20.mint(wallet.address, parseEther("300000000000000000000000000"));
await erc20.approve(spenderAddress, parseEther("300000000000000000000000000"));

Expand Down Expand Up @@ -93,11 +89,6 @@ async function main() {
? new Wallet(cmd.privateKey, provider)
: Wallet.fromMnemonic(ethTestConfig.mnemonic, "m/44'/60'/0'/0/1").connect(provider);

console.error("DEPLOYER ADDRESS");
console.error(wallet.address);
console.error("DEPLOYER PRIVATE KEY");
console.error(wallet._signingKey().privateKey);

console.log(JSON.stringify(await deployToken(token, wallet), null, 2));
});

Expand All @@ -113,11 +104,6 @@ async function main() {
? new Wallet(cmd.privateKey, provider)
: Wallet.fromMnemonic(ethTestConfig.mnemonic, "m/44'/60'/0'/0/1").connect(provider);

console.error("DEPLOYER ADDRESS");
console.error(wallet.address);
console.error("DEPLOYER PRIVATE KEY");
console.error(wallet._signingKey().privateKey);

for (const token of tokens) {
result.push(await deployToken(token, wallet));
}
Expand All @@ -142,20 +128,10 @@ async function main() {
? new Wallet(cmd.privateKey, provider)
: Wallet.fromMnemonic(ethTestConfig.mnemonic, "m/44'/60'/0'/0/1").connect(provider);

console.error("DEPLOYER ADDRESS");
console.error(wallet.address);
console.error("DEPLOYER PRIVATE KEY");
console.error(wallet._signingKey().privateKey);

console.log(JSON.stringify(await approve(token, wallet, cmd.spenderAddress), null, 2));

wallet = Wallet.fromMnemonic(ethTestConfig.mnemonic, "m/44'/60'/0'/0/0").connect(provider);

console.error("DEPLOYER ADDRESS");
console.error(wallet.address);
console.error("DEPLOYER PRIVATE KEY");
console.error(wallet._signingKey().privateKey);

console.log(JSON.stringify(await approve(token, wallet, cmd.spenderAddress), null, 2));
});

Expand Down

0 comments on commit f97c03a

Please sign in to comment.