Skip to content

Commit

Permalink
Make the fields on StructElement public (#49)
Browse files Browse the repository at this point in the history
We are working on some changes to the CLI so that we can output the results in the same format as solc and therefore need access to the StructElement fields.
  • Loading branch information
2xic committed Aug 10, 2023
1 parent 40f7baa commit 2abf94f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/inference/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,12 @@ impl<'de> Deserialize<'de> for U256Wrapper {
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
#[serde(rename_all = "snake_case")]
pub struct StructElement {
offset: usize,
// The offset for the element.
pub offset: usize,

// The type of the element.
#[serde(rename = "type")]
typ: Box<AbiType>,
pub typ: Box<AbiType>,
}

impl StructElement {
Expand Down

0 comments on commit 2abf94f

Please sign in to comment.