We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2fb595 commit bcc9c40Copy full SHA for bcc9c40
src/did-manager/cheqd-did-provider.ts
@@ -994,11 +994,25 @@ export class CheqdDIDProvider extends AbstractIdentifierProvider {
994
return tx;
995
}
996
997
+ // poll gas price
998
+ const gasPrice = await sdk.queryGasPrice(args.amount.denom);
999
+
1000
+ // define fee
1001
+ const fee = {
1002
+ amount: [
1003
+ {
1004
+ amount: (Number(gasPrice.price?.amount ?? '0') * 10 ** 9).toString(),
1005
+ denom: args.amount.denom,
1006
+ },
1007
+ ],
1008
+ gas: '360000',
1009
+ } satisfies DidStdFee;
1010
1011
const tx = await sdk.signer.sendTokens(
1012
(await (await this.cosmosPayerWallet).getAccounts())[0].address,
1013
args.recipientAddress,
1014
[args.amount],
- 'auto',
1015
+ fee,
1016
args.memo
1017
);
1018
0 commit comments