diff --git a/faucet/provider.js b/faucet/provider.js index 3a2f5d8..8d567b7 100644 --- a/faucet/provider.js +++ b/faucet/provider.js @@ -3,5 +3,5 @@ const { network, privateKey } = require('./config') module.exports = new MsgBroadcasterWithPk({ network, - privateKey + privateKey, }) diff --git a/pages/index.vue b/pages/index.vue index da35d92..07371e5 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -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) })