Skip to content

Commit ea9b9dc

Browse files
apollo_gateway: rename method to get_contract_class_from_client (#10598)
1 parent cd5cd95 commit ea9b9dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/apollo_gateway/src/sync_state_reader.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl SyncStateReader {
7373
Ok(sierra)
7474
}
7575

76-
fn get_compiled_class_from_client(&self, class_hash: ClassHash) -> StateResult<ContractClass> {
76+
fn get_contract_class_from_client(&self, class_hash: ClassHash) -> StateResult<ContractClass> {
7777
let is_class_declared = self
7878
.runtime
7979
.block_on(self.state_sync_client.is_class_declared_at(self.block_number, class_hash))
@@ -98,7 +98,7 @@ impl SyncStateReader {
9898

9999
impl FetchCompiledClasses for SyncStateReader {
100100
fn get_compiled_classes(&self, class_hash: ClassHash) -> StateResult<CompiledClasses> {
101-
let contract_class = self.get_compiled_class_from_client(class_hash)?;
101+
let contract_class = self.get_contract_class_from_client(class_hash)?;
102102
match contract_class {
103103
ContractClass::V1(casm_contract_class) => {
104104
let sierra = self.read_sierra(class_hash)?.ok_or_else(|| {
@@ -165,7 +165,7 @@ impl BlockifierStateReader for SyncStateReader {
165165
}
166166

167167
fn get_compiled_class(&self, class_hash: ClassHash) -> StateResult<RunnableCompiledClass> {
168-
let contract_class = self.get_compiled_class_from_client(class_hash)?;
168+
let contract_class = self.get_contract_class_from_client(class_hash)?;
169169

170170
match contract_class {
171171
ContractClass::V1(casm_contract_class) => {

0 commit comments

Comments
 (0)