I'm using mud@2.0.11 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?
I'm using mud@2.0.11 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?