ContractTypeError
Midnight.js API Reference v2.0.2
Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / ContractTypeError
Class: ContractTypeError
The error that is thrown when there is a contract type mismatch between a given contract type, and the initial state that is deployed at a given contract address.
Remarksβ
This error is typically thrown during calls to findDeployedContract where the supplied contract address represents a different type of contract to the contract type given.
Extendsβ
TypeError
Constructorsβ
Constructorβ
new ContractTypeError(
contractState,circuitIds):ContractTypeError
Initializes a new ContractTypeError.
Parametersβ
contractStateβ
ContractState
The initial deployed contract state.
circuitIdsβ
string[]
The circuits that are undefined, or have a verifier key mismatch with the
key present in contractState.
Returnsβ
ContractTypeError
Overridesβ
TypeError.constructor
Propertiesβ
circuitIdsβ
readonlycircuitIds:string[]
The circuits that are undefined, or have a verifier key mismatch with the
key present in contractState.
contractStateβ
readonlycontractState:ContractState
The initial deployed contract state.