Skip to content

Commit

Permalink
Update fee grant guide (#491)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
emperorjm authored Jun 6, 2024
1 parent d5ee4ed commit 18407e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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
```
Expand Down
4 changes: 2 additions & 2 deletions content/2.developers/3.guides/5.fee-grant/3.utilize-grant.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down Expand Up @@ -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);
```

::
Expand Down

0 comments on commit 18407e8

Please sign in to comment.