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

error msg couldn't be seen in client dev #2879

Open
ganzr opened this issue May 30, 2024 · 0 comments
Open

error msg couldn't be seen in client dev #2879

ganzr opened this issue May 30, 2024 · 0 comments

Comments

@ganzr
Copy link

ganzr commented May 30, 2024

I'm using [email protected] react-ecs template. And the contract is as follow:
contract IncrementSystem is System {
function increment() public returns (uint32) {
uint32 counter = Counter.get();
uint32 newValue = counter + 1;
Counter.set(newValue);
require(newValue == 6, "error msg");
return newValue;
}
}
So, when i call this method by client, it should have told me the revert msg, but what i got is as follow:

image

But when i open the console in the chrome, the revert msg has been got by the viem, just as follow:

image

My question is, why the dev tool did not show the revert error msg it had got? Is there any configuration of client should be set to display this kind of error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant