Skip to content

Commit

Permalink
Merge pull request #886 from ava-labs/updateInfoExport
Browse files Browse the repository at this point in the history
Update info export
  • Loading branch information
ruijialin-avalabs authored Oct 18, 2024
2 parents ad65b27 + 1094ede commit 7d08ce5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export { Utxo } from './serializable/avax/utxo';
export * from './signer';
export * as utils from './utils';
export * from './vms';
export { Info } from './info/info';
export * as info from './info';
export * from './crypto';
2 changes: 1 addition & 1 deletion src/info/info.ts → src/info/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type {
GetUpgradesInfoResponse,
} from './model';

export class Info extends Api {
export class InfoApi extends Api {
constructor(private readonly baseURL: string = AVAX_PUBLIC_URL) {
super(baseURL, '/ext/info', 'info');
}
Expand Down
2 changes: 2 additions & 0 deletions src/info/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './api';
export * from './model';
4 changes: 2 additions & 2 deletions src/vms/context/context.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InfoApi } from '../../info';
import { getHRP } from '../../constants/networkIDs';
import { Info } from '../../info/info';
import { AVMApi } from '../avm/api';
import { PVMApi } from '../pvm';
import type { Context } from './model';
Expand All @@ -16,7 +16,7 @@ export const getContextFromURI = async (
const { assetID: avaxAssetID } = await xChainApi.getAssetDescription(
assetDescription,
);
const info = new Info(baseURL);
const info = new InfoApi(baseURL);
const {
txFee: baseTxFee,
createAssetTxFee,
Expand Down

0 comments on commit 7d08ce5

Please sign in to comment.