-
-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
025d2fb
to
dcd66e7
Compare
Also unlock gas estimation on the devnet.
dcd66e7
to
c75f81e
Compare
It doesn't make sense to estimate gas for non-signed transactions.
964e2a0
to
c461457
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
…ab1e/ape-starknet into fix-52-gas-estimation-devnet
This comment was marked as outdated.
This comment was marked as outdated.
It seems to still be fixed to 100 gwei though.
8323fda
to
f6a9309
Compare
This comment was marked as outdated.
This comment was marked as outdated.
ape_starknet/provider.py
Outdated
**NOTE**: Currently, the gas price is fixed to always be 100 gwei. | ||
""" | ||
return self.conversion_manager.convert("100 gwei", int) | ||
return self.current_gas_price |
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.
It would be better to get the value from a block:
https://github.com/software-mansion/starknet.py/pull/279/files
Otherwise this can be outdated and is only set once a transaction is made.
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.
Good point. I'll simply revert that change, it was out of the scope anyway. Let's tackle that in a specific PR when starknet.py
will be ready (cf #80).
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.
marvelous work as always!
We can merge now if in a hurry else it is better to get the gas price value from the latest block I think. I opened a PR on starknet.py because I noticed the value was available in the response
What I did
fixes: #52
Ideally, that PR would:
How I did it
How to verify it
Checklist