Skip to content

Commit

Permalink
chore: publish v0.10.0-dev.2 (#184)
Browse files Browse the repository at this point in the history
* feat: revert reason struct

* chore: publish v0.10.0-dev.2
  • Loading branch information
yair-starkware authored Feb 29, 2024
1 parent ad98221 commit e109426
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starknet_api"
version = "0.10.0-dev.1"
version = "0.10.0-dev.2"
edition = "2021"
repository = "https://github.com/starkware-libs/starknet-api"
license = "Apache-2.0"
Expand Down
8 changes: 7 additions & 1 deletion src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,13 @@ pub enum TransactionExecutionStatus {
// status and every transaction is considered succeeded
Succeeded,
#[serde(rename = "REVERTED")]
Reverted { revert_reason: String },
Reverted(RevertedTransactionExecutionStatus),
}

/// A reverted transaction execution status.
#[derive(Debug, Clone, Eq, PartialEq, Hash, Deserialize, Serialize, PartialOrd, Ord)]
pub struct RevertedTransactionExecutionStatus {
pub revert_reason: String,
}

/// A fee.
Expand Down

0 comments on commit e109426

Please sign in to comment.