Decouple JsonRpcError enum from the data field #5437
Labels
dev experience
The build system, things that enable easier development etc.
snack
Smaller coding task - less than a day for an experienced dev
TeamRevenant
GH issues worked on by Revenant Team
JsonRpcError enum has code/message. It also has a data field which is used sometimes - currently for revert reason. But it's a bit of a hack because it gets reset as soon as that enum field gets used again (so, for example, you can't use this in unit tests to test actual vs expected values of the data field).
See #5421 for an exampleSee #5241 for an example
The text was updated successfully, but these errors were encountered: