Merge pull request #558 from cosmos/557-stargate-faucet-fees

Pass faucet fees config to Stargate client
This commit is contained in:
Will Clark
2020-11-27 13:46:55 +01:00
committed by GitHub
+4 -1
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),
],
),