-
Notifications
You must be signed in to change notification settings - Fork 5
Cudos 842: Extend gas fees handling #101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we will have to have the option for gasLimit to be set in every transaction as a optional param.
} | ||
return gasFee | ||
if (gasLimit === GAS_AUTO) { | ||
return gasMultiplier === GAS_AUTO ? GAS_AUTO : gasMultiplier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you skip this if
statement and put it in row 19? I thinkg that this whole logic could be made simpler
const signer = await SigningCosmWasmClient.connectWithSigner(nodeUrl, wallet) | ||
// gasPrice in signing client is considered only when auto gas is used | ||
const signer = await SigningCosmWasmClient.connectWithSigner( | ||
nodeUrl, wallet, { gasPrice: GasPrice.fromString(getGasPrice()) }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't we discuss to remove the gas price from the signer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cosmwasm lib requires the signing client to have gas price when auto gas is used (and actually reads it from there to make its calculations)
Other fixes:
pachage-jock.json
as they are not used