Skip to content

Commit d2ce26b

Browse files
committed
Don't attempt to parse CBOR record to blob ref
1 parent 1ced837 commit d2ce26b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mist/lib/lex.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ let repo_record_to_cbor_block (record : repo_record) =
9999

100100
let of_cbor encoded : repo_record =
101101
let decoded = Dag_cbor.decode encoded in
102-
match of_ipld decoded with
103-
| `LexMap m ->
104-
m
102+
match decoded with
103+
| `Map m ->
104+
String_map.map of_ipld m
105105
| _ ->
106106
raise (Failure "Decoded non-record value")

0 commit comments

Comments
 (0)