Converts ClarityValue to responseErrorCV
returns instance of type responseErrorCV
import { responseErrorCV, intCV } from '@stacks/transactions'; const respErrorCV = responseErrorCV(intCV(1)); // { type: 8, value: { type: 0, value: 1n } } Copy
import { responseErrorCV, intCV } from '@stacks/transactions'; const respErrorCV = responseErrorCV(intCV(1)); // { type: 8, value: { type: 0, value: 1n } }
clarity test cases for more examples
Generated using TypeDoc
Converts ClarityValue to responseErrorCV