Skip to content

Commit

Permalink
feat: update getUpgradesInfo function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ruijialin-avalabs committed Oct 3, 2024
1 parent dd6c8fe commit ee3029a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/info/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type {
GetTxFeeResponse,
isBootstrapped,
UptimeResponse,
GetUpgradesResponse,
GetUpgradesInfoResponse,
} from './model';

export class Info extends Api {
Expand Down Expand Up @@ -80,7 +80,7 @@ export class Info extends Api {
// Post-Etna API

// get upgrades info
getEtnaTime(): Promise<GetUpgradesResponse> {
return this.callRpc<GetUpgradesResponse>('upgrades');
getUpgradesInfo(): Promise<GetUpgradesInfoResponse> {
return this.callRpc<GetUpgradesInfoResponse>('upgrades');
}
}
2 changes: 1 addition & 1 deletion src/info/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type isBootstrapped = {
isBootstrapped: boolean;
};

export type GetUpgradesResponse = {
export type GetUpgradesInfoResponse = {
apricotPhaselTime: string;
apricotPhase2Time: string;
apricotPhase3Time: string;
Expand Down

0 comments on commit ee3029a

Please sign in to comment.