Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update constants blob errors #172

Draft
wants to merge 1 commit into
base: develop-feijoa
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/blob-inner/blob-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ module.exports.BLOB_ERRORS = {
// ROM_ERROR_NO_ERROR indicates the execution ended successfully
ROM_BLOB_ERROR_NO_ERROR: '',
// ROM_BLOB_ERROR_INVALID_PARSING indicates that has been an error while parsing the blob data
ROM_BLOB_ERROR_INVALID_PARSING: 'error_invalid_parsing',
ROM_BLOB_ERROR_INVALID_PARSING: 'ROM_BLOB_ERROR_INVALID_PARSING',
// ROM_BLOB_ERROR_INVALID_MSB_BYTE indicates that the MSB on one field element is different than zero (only for blob_type = 1)
ROM_BLOB_ERROR_INVALID_MSB_BYTE: 'error_invalid_msb_byte',
ROM_BLOB_ERROR_INVALID_MSB_BYTE: 'ROM_BLOB_ERROR_INVALID_MSB_BYTE',
// ROM_BLOB_ERROR_INVALID_ZK_GAS_LIMIT not enough zk_gas_limit supplied to pay for batches proofs
ROM_BLOB_ERROR_INVALID_ZK_GAS_LIMIT: 'error_invalid_zkgaslimit',
ROM_BLOB_ERROR_INVALID_ZK_GAS_LIMIT: 'ROM_BLOB_ERROR_INVALID_ZK_GAS_LIMIT',
// ROM_BLOB_ERROR_INVALID_BLOB_TYPE blob_type not supported
ROM_BLOB_ERROR_INVALID_BLOB_TYPE: 'error_invalid_blob_type',
ROM_BLOB_ERROR_INVALID_BLOB_TYPE: 'ROM_BLOB_ERROR_INVALID_BLOB_TYPE',
// ROM_BLOB_ERROR_INVALID_COMPRESSION_TYPE compression type not supported
ROM_BLOB_ERROR_INVALID_COMPRESSION_TYPE: 'error_invalid_compression_type',
ROM_BLOB_ERROR_INVALID_COMPRESSION_TYPE: 'ROM_BLOB_ERROR_INVALID_COMPRESSION_TYPE',
// ROM_BLOB_ERROR_INVALID_FORCED_BATCHES blobtype = 2 and numBatches > 1
ROM_BLOB_ERROR_INVALID_FORCED_BATCHES: 'error_invalid_forced_batches',
ROM_BLOB_ERROR_INVALID_FORCED_BATCHES: 'ROM_BLOB_ERROR_INVALID_FORCED_BATCHES',
// ROM_BLOB_ERROR_INVALID_TOTALBODY_LEN totalBodyLen != blobDataLen - 1 (byte compression) - 4 (bytes totalBodyLen)
ROM_BLOB_ERROR_INVALID_TOTALBODY_LEN: 'error_invalid_totalbody_len',
ROM_BLOB_ERROR_INVALID_TOTALBODY_LEN: 'ROM_BLOB_ERROR_INVALID_TOTALBODY_LEN',
};