Skip to content

Commit

Permalink
contracts: minor feedback on CBOR library docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CedarMist committed Oct 28, 2024
1 parent 7498c4e commit 7914b1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/contracts/Subcall.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ library Subcall {
error WrongMapSizeError();

/// Unknown type of receipt!
error TakeReceiptKindOutOfRange(uint receiptKind);
error TakeReceiptKindOutOfRange(uint256 receiptKind);

/// The origin is not authorized for the given ROFL app
error RoflOriginNotAuthorizedForApp();
Expand Down Expand Up @@ -297,9 +297,9 @@ library Subcall {

if (result[0] == 0xA1 && result[1] == 0x66 && result[2] == "s") {
// Delegation succeeded, decode number of shares.
uint newOffset;
(newOffset,shares) = CBOR.parseUint128(result, 8);
if( newOffset != result.length ) {
uint256 newOffset;
(newOffset, shares) = CBOR.parseUint128(result, 8);
if (newOffset != result.length) {
revert IncompleteParse();
}
} else {
Expand Down

0 comments on commit 7914b1f

Please sign in to comment.