Additional logs

This commit is contained in:
Michal Iskierko 2024-07-11 14:39:49 +02:00
parent 78e605d928
commit 93175b4881
2 changed files with 3 additions and 0 deletions

View File

@ -209,6 +209,7 @@ proc asyncGetMintFeesTask(argEncoded: string) {.gcsafe, nimcall.} =
arg.walletAddresses, collectibleAndAmount.amount).result
gasTable[(chainId, collectibleAndAmount.communityToken.address)] = estimations{"gasUnits"}.getInt
feeTable[chainId] = estimations{"suggestedFees"}.toSuggestedFeesDto()
debug "asyncGetMintFeesTask", chainId=chainId, estimations=estimations
arg.finish(%* {
"feeTable": tableToJsonArray(feeTable),
"gasTable": tableToJsonArray(gasTable),

View File

@ -838,6 +838,8 @@ QtObject:
if txData.source == parseAddress(ZERO_ADDRESS):
return
debug "Airdrop tokens ", chainId=collectibleAndAmount.communityToken.chainId, address=collectibleAndAmount.communityToken.address, amount=collectibleAndAmount.amount
debug "Airdrop tx data ", txData
debug "Airdrop addr len ", walletAddresses
let response = tokens_backend.mintTokens(collectibleAndAmount.communityToken.chainId, collectibleAndAmount.communityToken.address, %txData, common_utils.hashPassword(password), walletAddresses, collectibleAndAmount.amount)
let transactionHash = response.result.getStr()
debug "Airdrop transaction hash ", transactionHash=transactionHash