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