Skip to content

Commit

Permalink
fix: fmt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol committed Apr 10, 2024
1 parent 2d93acc commit fd5b5d8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions availability-oracle/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ impl StateManager for RewardsManagerContract {
let ids: Vec<[u8; 32usize]> = chunk.iter().map(|s| s.0).collect();
let statuses: Vec<bool> = chunk.iter().map(|s| s.1).collect();
let num_subgraphs = ids.len() as u64;
let tx = self
.contract
.set_denied_many(ids, statuses);
let tx = self.contract.set_denied_many(ids, statuses);

if let Err(err) = tx.call().await {
let message = err.decode_revert::<String>().unwrap_or(err.to_string());
Expand All @@ -127,9 +125,7 @@ impl StateManager for SubgraphAvailabilityManagerContract {
let statuses: Vec<bool> = chunk.iter().map(|s| s.1).collect();
let num_subgraphs = ids.len() as u64;
let oracle_index = U256::from(self.oracle_index);
let tx = self
.contract
.vote_many(ids, statuses, oracle_index);
let tx = self.contract.vote_many(ids, statuses, oracle_index);

if let Err(err) = tx.call().await {
let message = err.decode_revert::<String>().unwrap_or(err.to_string());
Expand Down

0 comments on commit fd5b5d8

Please sign in to comment.