Skip to content

Commit

Permalink
Merge branch 'main' of github.com:allora-network/allora-faucet
Browse files Browse the repository at this point in the history
  • Loading branch information
vladupshot committed Feb 15, 2024
2 parents 67deb08 + a2f5cd9 commit 0d2ffc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/db
.idea
secret
config
faucet.db
2 changes: 0 additions & 2 deletions faucet.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,12 @@ async function sendCosmosTx(recipient, chain) {
// const mnemonic = "surround miss nominee dream gap cross assault thank captain prosper drop duty group candy wealth weather scale put";
const chainConf = conf.blockchains.find(x => x.name === chain)
if(chainConf) {
console.log("Chain conf found")
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(chainConf.sender.mnemonic, chainConf.sender.option);
const [firstAccount] = await wallet.getAccounts();

// console.log("sender", firstAccount);
const rpcEndpoint = chainConf.endpoint.rpc_endpoint;
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, wallet);

// const recipient = "cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5";
const amount = chainConf.tx.amount;
const fee = chainConf.tx.fee;
Expand Down

0 comments on commit 0d2ffc6

Please sign in to comment.