Gitcoin is GDPR complaint. Learn more in
Gitcoin's Terms & Conditions.
Check out the Issue Explorer
Looking to fund some work? You can submit a new Funded Issue here.
### User Story
As a user I want useful default gas price settings on all networks when I send transactions.
*Summary*: For some reason, on xDAI chain `getGasPrice` sometimes gives 0 as the result (paritytech/parity-ethereum#9795). This means that the default gas price in Send Transaction screen is going to be 0 and unless user changes that value manually, that transaction is always going to fail.
We should include a sentinel value of 1 wei either in the enclosing wrapper function in `status-react` when the underlying web3 function gives a 0 result. (Or alternatively, change `getGasPrice` to include the same logic on the `status-go` side.
Issue was originally found in PR [#6388](https://github.com/status-im/status-react/pull/6388#issuecomment-432549313) - point 6
#### Expected behavior
Default gas price is never 0.
#### Actual behavior
Default gas price is sometimes 0 on xDAI chain.
- Switch to xDAI chain
- Wallet > Send Transaction
- Check default gas price