Refactor/proposal ipfs hash #8

Merged
bumi merged 3 commits from refactor/proposal-ipfs-hash into master 2018-04-02 19:02:05 +00:00
Showing only changes of commit 8301514c64 - Show all commits

11
scripts/send-funds.js Normal file
View File

@ -0,0 +1,11 @@
module.exports = function(cb) {
let recipient = process.argv[4];
if (!recipient) {
console.log('Please provide a recipient address');
process.exit();
}
let amount = parseInt(process.argv[5]) || 1;
console.log(recipient);
web3.eth.sendTransaction({to: recipient, value: web3.toWei(amount), from: web3.eth.accounts[0]}, console.log);
}