Reconstruct a serialized provider error, without relying on instanceof. Requires a recognized WalletProviderErrorCode and a message of at most 1,024 characters. Invalid errors throw a new error with code -32602.
instanceof
Reconstruct a serialized provider error, without relying on
instanceof. Requires a recognized WalletProviderErrorCode and a message of at most 1,024 characters. Invalid errors throw a new error with code -32602.