Skip to content

Improve RPC error messages#1176

Merged
sorpaas merged 6 commits intopolkadot-evm:masterfrom
darwinia-network:bear-errors
Sep 4, 2023
Merged

Improve RPC error messages#1176
sorpaas merged 6 commits intopolkadot-evm:masterfrom
darwinia-network:bear-errors

Conversation

@boundless-forest
Copy link
Copy Markdown
Collaborator

@boundless-forest boundless-forest commented Aug 28, 2023

This is a trick compatible issue that is easy to confuse. In Ethereum, when attempting to execute a transaction without sufficient funds, the error message you'll likely encounter is: "Insufficient funds for gas * price + value" . This error message only shows when the account balance is not enough to cover the total cost of the transaction. However, In frontier, there are many cases that can lead to this error message, for example, if your gas price is too low. This PR mainly fixes this issue, with some other improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants