You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
But when i open the console in the chrome, the revert msg has been got by the viem, just as follow:
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?
The text was updated successfully, but these errors were encountered:
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:
But when i open the console in the chrome, the revert msg has been got by the viem, just as follow:
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?
The text was updated successfully, but these errors were encountered: