Skip to content

Commit

Permalink
review merge
Browse files Browse the repository at this point in the history
  • Loading branch information
laisolizq committed Apr 26, 2024
1 parent 5fe2368 commit e89c698
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/blob-inner/blob-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ function parseBlobData(blobData, blobType) {
const bodyLen = Scalar.e(parseInt(tmpBlobdata.slice(offsetBytes, offsetBytes + blobConstants.BLOB_ENCODING.BYTES_BODY_LENGTH * 2), 16));
offsetBytes += blobConstants.BLOB_ENCODING.BYTES_BODY_LENGTH * 2;

if (blobType === blobConstants.BLOB_TYPE.CALLDATA || blobType === blobConstants.BLOB_TYPE.FORCED) {
if (blobType === blobConstants.BLOB_TYPE.CALLDATA
|| blobType === blobConstants.BLOB_TYPE.FORCED
|| blobType === blobConstants.BLOB_TYPE.VALIDIUM) {
const firstBytes = blobConstants.BLOB_ENCODING.BYTES_COMPRESSION_TYPE + blobConstants.BLOB_ENCODING.BYTES_BODY_LENGTH;
if (bodyLen !== Scalar.e(blobData.length / 2 - firstBytes)) {
isInvalid = true;
Expand Down

0 comments on commit e89c698

Please sign in to comment.