Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix: make deserializeDealProposal use readCid. (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk authored Apr 17, 2023
1 parent 478e982 commit 461d993
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contracts/v0.8/cbor/MarketCbor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ library MarketCBOR {
(len, byteIdx) = rawResp.readFixedArray(byteIdx);
assert(len == 11);

(tmp, byteIdx) = rawResp.readBytes(byteIdx);
ret.piece_cid = CommonTypes.Cid(tmp);

(ret.piece_cid, byteIdx) = rawResp.readCid(byteIdx);
(ret.piece_size, byteIdx) = rawResp.readUInt64(byteIdx);
(ret.verified_deal, byteIdx) = rawResp.readBool(byteIdx);
(tmp, byteIdx) = rawResp.readBytes(byteIdx);
Expand Down

0 comments on commit 461d993

Please sign in to comment.