Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Dapp Devs to choose the default gas price for the user #1473

Closed
GriffGreen opened this issue May 22, 2017 · 6 comments
Closed

Allow Dapp Devs to choose the default gas price for the user #1473

GriffGreen opened this issue May 22, 2017 · 6 comments
Assignees
Labels
area-provider Relating to the provider module. type-bug Something isn't working

Comments

@GriffGreen
Copy link

Fairly related to #1413, when we define a gas price, Metamask overrides our choice and makes it 20 Gwei. We would like to be able to define this for the user :-D

BACKGROUND

We have a donation button we would like to use for micro transactions and large transactions.

One of our selling points for giveth is to lower the overhead of sending money around the world, so it is very important for us and our users to keep transaction costs down. :-D

Often the donation button generates a token and does a few other calls so it will wind up having an estimated gas above 150,000 (great job with your estimateGas() buffer btw :-D!!! )

It would be very useful for us to be able to set the default gas price to 2 Gwei (or at least 5 Gwei ;-D) so that we can keep the idea of cheap microtransactions alive in these crazy times.

Much Love,
Griff

@danfinlay
Copy link
Contributor

This sounds like a bug, MetaMask shouldn't be overwriting dapp parameters with its defaults.

@danfinlay danfinlay added area-provider Relating to the provider module. P3-soon type-bug Something isn't working labels May 22, 2017
@omnibusinc
Copy link

Is there anything that needs to be done besides specifying a gasPrice in the transaction?

web3.eth.sendTransaction({
      to: donationAddress,
      from: web3.eth.accounts[0],
      value: web3.toWei(<some amount>),
      gasPrice: web3.toWei('5', 'gwei')
    }, donationCallback);

@ligi
Copy link

ligi commented May 24, 2017

I think I just stumbled into this one: https://www.reddit.com/r/ethereum/comments/6d3i9j/ens_bug_no_matter_where_i_slide_here_metamask/dhzk2la/
Fix would be nice ;-)

@GriffGreen
Copy link
Author

:-D Any progress? I had a friend that paid >$20 on a failed tx :-(

@kumavis
Copy link
Member

kumavis commented Jun 5, 2017

@GriffGreen higher priority bugs being fixed atm ("higher than my bug?? " yes)
this ticket will be labeled "in progress" when someone starts work on it

@GriffGreen
Copy link
Author

Of course thank you :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-provider Relating to the provider module. type-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants