Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Commit

Permalink
chore: express server faucet
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Sep 9, 2023
1 parent 1418245 commit 5cf9630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion faucet/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ const { network, privateKey } = require('./config')

module.exports = new MsgBroadcasterWithPk({
network,
privateKey
privateKey,
})
8 changes: 1 addition & 7 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,10 @@ export default Vue.extend({
return this.$toast.error('Please enter a valid Injective address')
}
if (!process.env.APP_API_FAUCET_ENDPOINT) {
return this.$toast.error(
'Please set APP_API_FAUCET_ENDPOINT in your .env'
)
}
this.status.setLoading()
this.$axios
.$get(`${process.env.APP_API_FAUCET_ENDPOINT}?address=${this.address}`)
.$post(`https://api.express.injective.dev/testnet-faucet`, { address })
.then((response: any) => {
this.$toast.success(response.message)
})
Expand Down

0 comments on commit 5cf9630

Please sign in to comment.