Skip to content

Commit

Permalink
Use existing ContractIdFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Br1ght0ne committed Oct 15, 2024
1 parent 581e9b2 commit 14e228f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/fuels-accounts/src/provider/retryable_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,15 +377,6 @@ mod custom_queries {
pub transaction: Option<TransactionIdFragment>,
}

#[derive(cynic::QueryFragment, Clone, Debug)]
#[cynic(
schema_path = "./target/fuel-core-client-schema.sdl",
graphql_type = "Contract"
)]
pub struct ContractIdOnly {
pub id: ContractId,
}

#[derive(cynic::QueryFragment, Clone, Debug)]
#[cynic(
schema_path = "./target/fuel-core-client-schema.sdl",
Expand All @@ -394,6 +385,6 @@ mod custom_queries {
)]
pub struct ContractExistsQuery {
#[arguments(id: $id)]
pub contract: Option<ContractIdOnly>,
pub contract: Option<ContractIdFragment>,
}
}

0 comments on commit 14e228f

Please sign in to comment.