This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hooked-wallet - default gasLimit is 1.5*estimateGas
- Loading branch information
3c02501
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't this be solved in a better way? I define fixed gas limits via fixtures and I would like those to be taken seriously.
3c02501
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.
3c02501
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.
@axic what do you mean by fixtures? also - this is the fallback limit, if you specify a limit it will override this.
3c02501
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 define a method for
eth_estimateGas
using the FixtureSubprovider. That is called by hooked wallet as during web3 contract execution there is no easy way to define gas limits.3c02501
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.
@axic so yeah this is a temporary fix to a real bug that was blocking the tutorial for the ethereum hackathon dan is participating in. i didnt have time to explore --- MetaMask/metamask-extension#60
id much rather have a real fix.
3c02501
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.
in summary - on the testrpc, estimateGas and actually processing the tx had different gas requirements, and so the estimateGas resulted in OOG