Handle errors in seed funding
This commit is contained in:
parent
2623e71055
commit
6c8491e67b
@ -17,13 +17,15 @@ module.exports = async function(callback) {
|
|||||||
let fundingAmount = 2;
|
let fundingAmount = 2;
|
||||||
each(seeds.funds, (address, next) => {
|
each(seeds.funds, (address, next) => {
|
||||||
console.log(`funding ${address} with 2 ETH`);
|
console.log(`funding ${address} with 2 ETH`);
|
||||||
|
try {
|
||||||
web3.eth.sendTransaction({
|
web3.eth.sendTransaction({
|
||||||
to: address,
|
to: address,
|
||||||
value: web3.toWei(fundingAmount),
|
value: web3.toWei(fundingAmount),
|
||||||
from: web3.eth.accounts[0]
|
from: web3.eth.accounts[0]
|
||||||
},
|
}, result => next())
|
||||||
(result) => { next(); }
|
} catch(e) {
|
||||||
)
|
console.log('FAILED:', e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
each(seeds.contractCalls, (call, next) => {
|
each(seeds.contractCalls, (call, next) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user