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 11, 2024
1 parent 8854f0a commit a803c8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions availability-oracle/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ impl StateManager for RewardsManagerContract {
let tx = self.contract.set_denied_many(ids, statuses);

// Calculate estimated gas
let estimated_gas_tx = tx
.estimate_gas()
.await;
let estimated_gas_tx = tx.estimate_gas().await;

let estimated_gas = match estimated_gas_tx {
Ok(estimate) => estimate,
Expand Down Expand Up @@ -141,9 +139,7 @@ impl StateManager for SubgraphAvailabilityManagerContract {
let tx = self.contract.vote_many(ids, statuses, oracle_index);

// Calculate estimated gas
let estimated_gas_tx = tx
.estimate_gas()
.await;
let estimated_gas_tx = tx.estimate_gas().await;

let estimated_gas = match estimated_gas_tx {
Ok(estimate) => estimate,
Expand Down
2 changes: 1 addition & 1 deletion availability-oracle/src/network_subgraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct GraphqlResponse {

const DEPLOYMENTS_QUERY: &str = r#"
query($threshold: BigInt!, $max_creation: Int!, $skip: Int!) {
subgraphDeployments(first: 1000, skip: $skip, where: { signalledTokens_gt: $threshold, createdAt_lt: $max_creation }) {
subgraphDeployments(first: 1000, skip: $skip, where: { id: "0x8ac6d590f88f1bd48f5f495b2a56f9a183f9b335d3d3a72807dbf2247c7ee558", signalledTokens_gt: $threshold, createdAt_lt: $max_creation }) {
id
stakedTokens
deniedAt
Expand Down

0 comments on commit a803c8d

Please sign in to comment.