Skip to content

Commit 20ff0de

Browse files
authored
Merge pull request #3 from persistenceOne/puneet/updatedeps
update deps and add env
2 parents e974e93 + fbf9941 commit 20ff0de

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

faucet.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ function trimWhiteSpaces(data) {
1313
return data.split(' ').join('');
1414
}
1515

16-
function msg(inputs, outputs) {
16+
function msg(inputAddr, outputs) {
1717
return {
1818
typeUrl: msgSendTypeUrl,
1919
value: MsgMultiSend.fromPartial({
2020
inputs: [
2121
{
22-
address: trimWhiteSpaces(inputs),//fromAddress
22+
address: trimWhiteSpaces(inputAddr),//fromAddress
2323
coins: [
2424
{
2525
denom: constants.DENOM,
@@ -50,14 +50,15 @@ async function MnemonicWalletWithPassphrase(mnemonic) {
5050
}
5151

5252
function runner() {
53+
console.log("started faucet loop")
5354
setInterval(async function () {
5455
if (constants.FaucetList.length > 0) {
5556
try {
5657
let [wallet, addr] = await MnemonicWalletWithPassphrase(mnemonic);
5758
let outputs = [];
5859

59-
constants.FaucetList.forEach(reciever => outputs.push({
60-
address: trimWhiteSpaces(reciever),
60+
constants.FaucetList.forEach(receiver => outputs.push({
61+
address: trimWhiteSpaces(receiver),
6162
coins: [
6263
{
6364
denom: constants.DENOM,

0 commit comments

Comments
 (0)