Skip to content

Commit 14d60ce

Browse files
committed
Fix capacity miscalculation in serializeExtendClaimTermsParams
1 parent 1eabac4 commit 14d60ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/v0.8/cbor/VerifRegCbor.sol

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ library VerifRegCBOR {
205205
capacity += Misc.getPrefixSize(1);
206206
capacity += Misc.getPrefixSize(termsLen);
207207
for (uint i = 0; i < termsLen; i++) {
208+
capacity += Misc.getPrefixSize(3);
208209
capacity += Misc.getFilActorIdSize(terms[i].provider);
209210
capacity += Misc.getFilActorIdSize(terms[i].claim_id);
210211
capacity += Misc.getChainEpochSize(terms[i].term_max);

0 commit comments

Comments
 (0)