Skip to content

Commit

Permalink
Merge pull request #17 from AvailX/dataType-change/EncryptedData
Browse files Browse the repository at this point in the history
Data type change/encrypted data
  • Loading branch information
Zack-Xb authored May 14, 2024
2 parents 8af3a62 + 7bba4bd commit f69858f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "avail-common"
version = "0.5.0"
version = "0.6.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 6 additions & 0 deletions src/models/encrypted_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ pub struct EncryptedData {
pub event_type: Option<EventTypeCommon>,
pub record_nonce: Option<String>,
pub transaction_state: Option<TransactionState>,
pub transaction_id: Option<String>,
pub transition_id: Option<String>
}

impl EncryptedData {
Expand All @@ -145,6 +147,8 @@ impl EncryptedData {
event_type: Option<EventTypeCommon>,
record_nonce: Option<String>,
transaction_state: Option<TransactionState>,
transaction_id: Option<String>,
transition_id: Option<String>
) -> Self {
Self {
id,
Expand All @@ -164,6 +168,8 @@ impl EncryptedData {
event_type,
record_nonce,
transaction_state,
transaction_id,
transition_id
}
}

Expand Down

0 comments on commit f69858f

Please sign in to comment.