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
Some contract calls revert with specific errors. For instance, trying to join a subnet as a collateral validator in federated mode fails with revert MethodNotAllowed(ERR_PERMISSIONED_AND_BOOTSTRAPPED). The CLI should parse these errors and report the reason back to the user.
The text was updated successfully, but these errors were encountered:
The issue is that the Calibration net does not return the revert data in the JSON RPC response. Not in the ethers-rs library. Though the error is inside the message field in the response and can be parsed. Suggested solution:
Look at what ethers-rs does internally to turn the value in "data" to a human readable error, and see if the same "interpretation" API is available publicly. Then we could handle this case by extracting the error data from the message string, and calling that API.
See if you can attach a middleware to intercept the response and massage it into what ethers expects.
Some contract calls revert with specific errors. For instance, trying to join a subnet as a collateral validator in federated mode fails with
revert MethodNotAllowed(ERR_PERMISSIONED_AND_BOOTSTRAPPED)
. The CLI should parse these errors and report the reason back to the user.The text was updated successfully, but these errors were encountered: