Skip to content

Commit

Permalink
fix gas calculation (#214)
Browse files Browse the repository at this point in the history
* fix gas calculation

* changeset
  • Loading branch information
BurntVal authored Aug 9, 2024
1 parent fa3f47a commit 78cf088
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/rare-llamas-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@burnt-labs/signers": minor
---

Fix gas calculation param bug
5 changes: 1 addition & 4 deletions packages/signers/src/signers/utils/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ export class AAClient extends SigningCosmWasmClient {

const simmedGas = await this.simulate(sender, messages, memo);
const gasPrice = GasPrice.fromString(gasPriceString);
const calculatedFee: StdFee = calculateFee(
simmedGas * gasAdjustment,
gasPrice,
);
const calculatedFee: StdFee = calculateFee(simmedGas, gasPrice);

let defaultFee: StdFee;
let gas = (
Expand Down

0 comments on commit 78cf088

Please sign in to comment.