Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cgorenflo committed Sep 21, 2023
1 parent 3d46cd7 commit 2178d13
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions contracts/voting-verifier/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ impl From<PollMetadata> for Vec<Attribute> {
&serde_json::to_string(&value.poll_id).expect("failed to serialize poll_id"),
),
("source_chain", &value.source_chain.to_string()),
(
"source_gateway_address",
&value.source_gateway_address.to_string(),
),
("source_gateway_address", &value.source_gateway_address),
(
"confirmation_height",
&value.confirmation_height.to_string(),
Expand Down Expand Up @@ -179,7 +176,7 @@ impl From<Voted> for Event {
Event::new("voted")
.add_attribute(
"poll_id",
&serde_json::to_string(&other.poll_id).expect("failed to serialize poll_id"),
serde_json::to_string(&other.poll_id).expect("failed to serialize poll_id"),
)
.add_attribute("voter", other.voter)
}
Expand Down

0 comments on commit 2178d13

Please sign in to comment.