We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this function, the type-checker should report an error:
(define-trait my-trait ()) (define-read-only (foo (x <my-trait>)) (is-eq x .bar) )
There is no error from the type-checker, but there will be an error at runtime:
error: Runtime Error: Runtime error while interpreting ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.contract-4: Unchecked(TypeError(PrincipalType, CallableType(Trait(TraitIdentifier { name: ClarityName("my-trait"), contract_identifier: QualifiedContractIdentifier { issuer: StandardPrincipalData(ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM), name: ContractName("sandbox") } }))))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In this function, the type-checker should report an error:
There is no error from the type-checker, but there will be an error at runtime:
The text was updated successfully, but these errors were encountered: