Skip to main content

Key Considerations

Critical limitations and important considerations when working with CoFHE

Common Issues

  1. Missing revert data- In case of getting such error, please verify here, that you are using the latest cofhe-contracts version.

*Will be filled overtime, when a new issue will arise.

Possible errors from Solidity

ErrorDescription
InvalidInputsAmountOperation requires specific number of inputs. Occurs when an operation receives wrong number of arguments
InvalidOperationInputsOperation inputs must be valid for the operation. Thrown when inputs violate operation requirements
TooManyInputsOperations have maximum input limits. Error when input count exceeds operation's maximum
InvalidBytesLengthByte arrays must match expected length. Occurs when byte array length doesn't match required size
InvalidTypeOrSecurityZoneOperations must use compatible types and security zones. Occurs when operation violates type or security zone constraints
InvalidInputTypeInput must match expected type. Error when input type doesn't match function requirements
InvalidInputForFunctionFunction inputs must match defined parameters. Thrown when function receives incompatible input type
InvalidSecurityZoneOperations must stay within defined security zones. Error when operation violates security zone constraints
InvalidSignatureCryptographic signatures must be valid. Occurs with signature verification failures
InvalidSignerSigner must match expected authorized address. Error when transaction signer doesn't match required address
InvalidAddressAddress must be valid and non-zero. Error when invalid address is provided
OnlyOwnerAllowedFunction restricted to contract owner. Error includes address of unauthorized caller
OnlyAggregatorAllowedFunction restricted to authorized aggregator. Error includes address of unauthorized caller
AlreadyDelegatedDelegatee contract is already delegatee for sender & delegator addresses. Error when attempting duplicate delegation
SenderCannotBeDelegateeAddressSender cannot be the delegatee address. Error when sender tries to delegate to themselves
SenderNotAllowedSender address not authorized for allow operations. Error includes address of unauthorized sender
DirectAllowForbiddenDirect handle allowance not permitted. Must use Task Manager. Error includes address attempting direct allow