assertPieceValid
Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
| ErrorType | - InvalidUploadSizeError when the PieceCID size is below SIZE_CONSTANTS.MIN_UPLOAD_SIZE or above SIZE_CONSTANTS.MAX_UPLOAD_SIZE - Error when the piece metadata exceeds the contract limits |