OZContractError
public struct OZContractError : Equatable, Hashable, Sendable
A decoded OpenZeppelin smart-account contract error: its numeric code, the contract
error enum it belongs to (contract), and the name of the variant, exactly as
declared by the deployed contracts. Variant names repeat across the policy enums (for
example NotAllowed), so contract is required to disambiguate; code is globally
unique.
-
The numeric contract error code (for example
3016).Declaration
Swift
public let code: Int -
The contract error enum the code belongs to (for example
SmartAccountError).Declaration
Swift
public let contract: String -
The variant name inside
contract(for exampleUnauthorizedSigner).Declaration
Swift
public let name: String -
Declaration
Swift
public init(code: Int, contract: String, name: String)
View on GitHub
Install in Dash