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
commit 67bc0fcc5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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),
],
),