Skip to content

Commit 461d993

Browse files
authored
fix: make deserializeDealProposal use readCid. (#366)
1 parent 478e982 commit 461d993

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contracts/v0.8/cbor/MarketCbor.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ library MarketCBOR {
277277
(len, byteIdx) = rawResp.readFixedArray(byteIdx);
278278
assert(len == 11);
279279

280-
(tmp, byteIdx) = rawResp.readBytes(byteIdx);
281-
ret.piece_cid = CommonTypes.Cid(tmp);
282-
280+
(ret.piece_cid, byteIdx) = rawResp.readCid(byteIdx);
283281
(ret.piece_size, byteIdx) = rawResp.readUInt64(byteIdx);
284282
(ret.verified_deal, byteIdx) = rawResp.readBool(byteIdx);
285283
(tmp, byteIdx) = rawResp.readBytes(byteIdx);

0 commit comments

Comments
 (0)