cosmwasm-stargate: Return gas used

This commit is contained in:
willclarktech 2021-04-14 12:59:15 +02:00
parent a98c310e83
commit 98ecbcbdbb
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -224,6 +224,8 @@ export class CosmWasmClient {
height: result.height,
rawLog: result.rawLog,
transactionHash: txId,
gasUsed: result.gasUsed,
gasWanted: result.gasWanted,
}
: pollForTx(txId);
};
@ -382,6 +384,8 @@ export class CosmWasmClient {
code: tx.result.code,
rawLog: tx.result.log || "",
tx: tx.tx,
gasUsed: tx.result.gasUsed,
gasWanted: tx.result.gasWanted,
};
});
}