Skip to content

Commit aad7fb0

Browse files
committed
refactor: rename method
1 parent fafa16f commit aad7fb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sdk/GearboxSDK.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class GearboxSDK {
178178
this,
179179
addressProviderAddress,
180180
);
181-
await this.#addressProvider.fetchState(this.currentBlock);
181+
await this.#addressProvider.syncState(this.currentBlock);
182182

183183
// Attaching bot list contract
184184
const botListAddress = this.#addressProvider.getAddress(AP_BOT_LIST, 300);

src/sdk/core/AddressProviderV3_1Contract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class AddressProviderContractV3_1 extends BaseContract<abi> {
8686
return this.getAddress(contract, this.latest[contract]);
8787
}
8888

89-
public async fetchState(blockNumber?: bigint): Promise<void> {
89+
public async syncState(blockNumber?: bigint): Promise<void> {
9090
const entries = await this.contract.read.getAllSavedContracts({
9191
blockNumber,
9292
});

0 commit comments

Comments
 (0)