Skip to content

Commit

Permalink
fix(zksync_types): Update SerializationTransactionError::OversizedDat…
Browse files Browse the repository at this point in the history
…a description (#949)

## What ❔

Update SerializationTransactionError::OversizedData description

## Why ❔

Fix the error description, use the right tx_size index

## Checklist


- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
- [x] Spellcheck has been run via `zk spellcheck`.

Co-authored-by: Igor Borodin <hatemosphere@protonmail.com>
  • Loading branch information
peinlcy and hatemosphere committed Jan 29, 2024
1 parent 2dd69d4 commit c95f3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/types/src/transaction_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub enum SerializationTransactionError {
/// OversizedData is returned if the raw tx size is greater
/// than some meaningful limit a user might use. This is not a consensus error
/// making the transaction invalid, rather a DOS protection.
#[error("oversized data. max: {0}; actual: {0}")]
#[error("oversized data. max: {0}; actual: {1}")]
OversizedData(usize, usize),
#[error("gas per pub data limit is zero")]
GasPerPubDataLimitZero,
Expand Down

0 comments on commit c95f3ee

Please sign in to comment.