Skip to content

Commit

Permalink
fix: change default buffer encoding to hex in cvToString() function
Browse files Browse the repository at this point in the history
  • Loading branch information
reedrosenbluth committed Oct 21, 2020
1 parent 5a321ae commit 92af5b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/transactions/src/clarity/clarityValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export type ClarityValue =
| StringAsciiCV
| StringUtf8CV;

export function cvToString(val: ClarityValue, encoding: 'tryAscii' | 'hex' = 'tryAscii'): string {
export function cvToString(val: ClarityValue, encoding: 'tryAscii' | 'hex' = 'hex'): string {
switch (val.type) {
case ClarityType.BoolTrue:
return 'true';
Expand Down
2 changes: 1 addition & 1 deletion packages/transactions/tests/clarity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ describe('Clarity Types', () => {
(tuple
(a -1)
(b u1)
(c "test")
(c 0x74657374)
(d true)
(e (some true))
(f none)
Expand Down

0 comments on commit 92af5b5

Please sign in to comment.