Skip to content

Commit

Permalink
correcting gas calculation error
Browse files Browse the repository at this point in the history
  • Loading branch information
karnthis committed Nov 22, 2023
1 parent b59ea17 commit 477cf01
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jackallabs/jackal.nodejs",
"version": "1.0.1",
"version": "1.0.2",
"description": "Javascript Node.js library for interacting with the Jackal Chain",
"keywords": [
"jackal",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/gas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function finalizeGas(
): IGasRate {
const totalGas = Number(gasOverride) || estimateGas(msgArray)
return {
amount: [],
amount: [{ denom: 'ujkl', amount: Math.ceil(totalGas * .002).toString() }],
gas: totalGas.toString()
}
}
Expand Down

0 comments on commit 477cf01

Please sign in to comment.