From 18407e88a982c4561802a217a3dc909859679360 Mon Sep 17 00:00:00 2001 From: Adrian Thompson Date: Thu, 6 Jun 2024 11:45:30 -0500 Subject: [PATCH] Update fee grant guide (#491) * Update the constatinde donom in the create allowance command and remove the unsupported block return type block * Update the javascript code to get the offline signer andincrease the fee miltiplier --- .../2.developers/3.guides/5.fee-grant/2.grant-allowance.md | 4 +--- content/2.developers/3.guides/5.fee-grant/3.utilize-grant.md | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/content/2.developers/3.guides/5.fee-grant/2.grant-allowance.md b/content/2.developers/3.guides/5.fee-grant/2.grant-allowance.md index 9c1131f9..9e496456 100644 --- a/content/2.developers/3.guides/5.fee-grant/2.grant-allowance.md +++ b/content/2.developers/3.guides/5.fee-grant/2.grant-allowance.md @@ -35,7 +35,6 @@ archwayd tx feegrant grant "${granter_addr}" "${grantee_address}" \ --gas auto \ --gas-prices "$(archwayd q rewards estimate-fees 1 --node 'https://rpc.mainnet.archway.io:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)')" \ --gas-adjustment 1.3 \ - --broadcast-mode block \ --output json \ --yes ``` @@ -52,13 +51,12 @@ testnet archwayd tx feegrant grant "${granter_addr}" "${grantee_address}" \ --chain-id "constantine-3" \ --node "https://rpc.constantine.archway.io:443" \ - --spend-limit 500000000000000000aarch \ + --spend-limit 500000000000000000aconst \ --expiration 2025-12-31T23:00:00Z \ --allowed-messages '/cosmwasm.wasm.v1.MsgExecuteContract' \ --gas auto \ --gas-prices $(archwayd q rewards estimate-fees 1 --node 'https://rpc.constantine.archway.io:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)') \ --gas-adjustment 1.3 \ - --broadcast-mode block \ --output json \ --yes ``` diff --git a/content/2.developers/3.guides/5.fee-grant/3.utilize-grant.md b/content/2.developers/3.guides/5.fee-grant/3.utilize-grant.md index ad3a16b9..f6c8115b 100644 --- a/content/2.developers/3.guides/5.fee-grant/3.utilize-grant.md +++ b/content/2.developers/3.guides/5.fee-grant/3.utilize-grant.md @@ -275,7 +275,7 @@ await window.keplr.enable(chainId); ::highlight-card ```javascript -const offlineSigner = window.keplr.getOfflineSignerAuto(chainId); +const offlineSigner = window.getOfflineSigner(chainId); const signingClient = await SigningArchwayClient.connectWithSigner(ChainInfo.rpc, offlineSigner); ``` @@ -336,7 +336,7 @@ const messages = [executeMsg]; ::highlight-card ```javascript -const fee = await signingClient.calculateFee(signerAddress, messages, '', 1.5, feeGranterAddress); +const fee = await signingClient.calculateFee(signerAddress, messages, '', 1.7, feeGranterAddress); ``` ::