faucet: Pass fees config to stargate client

This commit is contained in:
willclarktech 2020-11-27 11:51:23 +00:00
parent 97e3f81ab0
commit 52f7d7a07c
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -43,7 +43,10 @@ export async function createClients(
> => [
senderAddress,
isOfflineDirectSigner(wallet)
? await SigningStargateClient.connectWithWallet(apiUrl, wallet, {})
? await SigningStargateClient.connectWithWallet(apiUrl, wallet, {
gasLimits: constants.gasLimits,
gasPrice: constants.gasPrice,
})
: new SigningCosmosClient(apiUrl, senderAddress, wallet, constants.gasPrice, constants.gasLimits),
],
),