Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Move scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-es committed Oct 20, 2020
1 parent d37f297 commit 355e41d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/protocol/scripts/deployERC20.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const ERC20Token = require('../build/contracts/ERC20Token.json');

(async () => {
const name = 'Test CHF';
const symbol = 'TCHF';
const account = (await web3.eth.getAccounts())[0];
let erc20 = new web3.eth.Contract(ERC20Token.abi);
erc20 = await erc20.deploy({ data: ERC20Token.bytecode, arguments: [name, symbol] }).send({ from: account });
await erc20.methods.drip(account, 100).send({ from: account });
console.log(erc20.options.address);
})();

0 comments on commit 355e41d

Please sign in to comment.