Skip to content

Commit

Permalink
Update thiserror to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
SethDusek committed Nov 7, 2024
1 parent e56e6fa commit d3d097c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ergo-rest = { version = "^0.13.0", path = "./ergo-rest" }
ergo-lib = { version = "^0.28.0", path = "./ergo-lib"}
k256 = { version = "0.13.1", features = ["arithmetic", "ecdsa"] }
elliptic-curve = { version = "0.12", features = ["ff"] }
thiserror = "1"
thiserror = "2"
bounded-vec = { version = "^0.7.0" }
bitvec = { version = "1.0.1" }
derive_more = "0.99"
Expand Down
4 changes: 2 additions & 2 deletions ergo-lib/src/chain/transaction/ergo_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ pub enum TxValidationError {
/// Negative heights are not allowed after block v1.
/// When using sigma-rust where heights are always unsigned, this error may be because creation height was set to be >= 2147483648
NegativeHeight,
#[error("Output box size {0} > maximum {}", ErgoBox::MAX_BOX_SIZE)]
#[error("Output box size {0} > maximum {max_size}", max_size = ErgoBox::MAX_BOX_SIZE)]
/// Box size is > [ErgoBox::MAX_BOX_SIZE]
BoxSizeExceeded(usize),
#[error("Output box size {0} > maximum {}", ErgoBox::MAX_SCRIPT_SIZE)]
#[error("Output box size {0} > maximum {max_size}", max_size = ErgoBox::MAX_SCRIPT_SIZE)]
/// Script size is > [ErgoBox::MAX_SCRIPT_SIZE]
ScriptSizeExceeded(usize),
#[error("TX context error: {0}")]
Expand Down

0 comments on commit d3d097c

Please sign in to comment.