File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
5252function 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 ,
You can’t perform that action at this time.
0 commit comments