Skip to content

Commit

Permalink
Change genesisConfig to experimental_genesisConfig (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbodnar committed May 13, 2020
1 parent 409a0f0 commit c532e50
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/account.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/providers/json-rpc-provider.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/providers/json-rpc-provider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/providers/provider.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export class Account {
* @returns {Promise<AccountBalance>}
*/
async getAccountBalance(): Promise<AccountBalance> {
const genesisConfig = await this.connection.provider.genesisConfig();
const genesisConfig = await this.connection.provider.experimental_genesisConfig();
const state = await this.state();

const costPerByte = new BN(genesisConfig.runtime_config.storage_amount_per_byte);
Expand Down
2 changes: 1 addition & 1 deletion src/providers/json-rpc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class JsonRpcProvider extends Provider {
* Gets EXPERIMENTAL_genesis_config from RPC
* @returns {Promise<GenesisConfig>}
*/
async genesisConfig(): Promise<GenesisConfig> {
async experimental_genesisConfig(): Promise<GenesisConfig> {
return await this.sendJsonRpc('EXPERIMENTAL_genesis_config', []);
}

Expand Down
2 changes: 1 addition & 1 deletion src/providers/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export abstract class Provider {
abstract async block(blockId: BlockId): Promise<BlockResult>;
abstract async chunk(chunkId: ChunkId): Promise<ChunkResult>;
abstract async validators(blockId: BlockId): Promise<EpochValidatorInfo>;
abstract async genesisConfig(): Promise<GenesisConfig>;
abstract async experimental_genesisConfig(): Promise<GenesisConfig>;
}

export function getTransactionLastResult(txResult: FinalExecutionOutcome): any {
Expand Down

0 comments on commit c532e50

Please sign in to comment.