-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
bugSomething isn't workingSomething isn't workingwont fixThis will not be worked onThis will not be worked on
Description
Hello,
I'm trying to get the revert reason of a transaction on my frontend.
When using Alchemy I get the error on the screenshot and notice there is no revert reason.
But on the Alchemy dashboard, I can see the revert reason speed invalid as expected.
Here's the repo for a reproduction case, just add your api key and give it a shot.
https://github.com/laygir/web3-revert-test/tree/using-alchemy
Following contract is being used for this reproduction case.
contract CallRevert {
uint256 speed;
function Start(uint256 _speedPercent) public {
require(_speedPercent <= 100, 'speed invalid');
speed = _speedPercent;
}
}When deployed and a transaction sent locally againts Hardhat, here's the result.
*I've tried getting help on Discord but no luck, so creating an issue here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwont fixThis will not be worked onThis will not be worked on


