fix: add funds to message when depositing from wallet (#65)

This commit is contained in:
Gustavo Mauricio 2022-12-13 08:09:34 +00:00 committed by GitHub
parent c4f8f4eab0
commit 4527423a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,15 @@ const useTradeAsset = (
await creditManagerClient?.updateCreditAccount(
{ accountId: selectedAccount, actions },
hardcodedFee,
undefined,
depositAmount > 0
? [
{
denom: tokenIn,
amount: String(depositAmount),
},
]
: undefined,
),
{
onSettled: () => {