ContractErrorCodes

Contract-level error codes from the OZ smart account contract.

These codes are returned in contract error responses and can be mapped to exceptions by the SDK when interpreting failed transaction results.

Error code range: 3xxx (credential errors, aligned with the contract's Error enum).

Properties

Link copied to clipboard

The number of context rule IDs in the auth payload does not match the expected count.

Link copied to clipboard
const val KEY_DATA_TOO_LARGE: Int = 3013

The key_data field on a signer exceeds the maximum allowed size.

Link copied to clipboard
const val MATH_OVERFLOW: Int = 3012

Integer arithmetic overflow occurred in the contract.

Link copied to clipboard
const val NAME_TOO_LONG: Int = 3015

A name field (e.g. context rule name) exceeds the maximum allowed length.

Link copied to clipboard
const val UNAUTHORIZED_SIGNER: Int = 3016

The signer is not authorized to sign the given context rule.