describeRevert
describeRevert(
error):Error&object
Defined in: protocol-staking-ssv-evm/src/ssv-protocol-evm.ts:97
Turns a revert into an error that names the SSVStaking custom error.
The provider buries the revert data in error.data or a few
info.error / error / cause hops down (viem wraps the node’s error
in CallExecutionError → ExecutionRevertedError → the raw RPC error); the
selector also tends to appear in the message text — every place is checked.
Unknown reverts pass through.
Parameters
Section titled “Parameters”unknown
The error thrown by viem / the provider.
Returns
Section titled “Returns”Error & object
The error to surface.