latticexyz / mud

MUD is a framework for building autonomous worlds
https://mud.dev
MIT License
692 stars 174 forks source link

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

Open ganzr opened 1 month ago

ganzr commented 1 month ago

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:

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?