Skip to content

Commit

Permalink
fix: rename rpc provider
Browse files Browse the repository at this point in the history
  • Loading branch information
badurinantun committed Jul 13, 2022
1 parent 34db683 commit fee4fb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/provider/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from '../types';
import { BigNumberish } from '../utils/number';
import { ProviderInterface } from './interface';
import { RPCProvider, RpcProviderOptions } from './rpc';
import { RpcProvider, RpcProviderOptions } from './rpc';
import { SequencerProvider, SequencerProviderOptions } from './sequencer';
import { BlockIdentifier } from './utils';

Expand All @@ -32,7 +32,7 @@ export class Provider implements ProviderInterface {
if (providerOrOptions instanceof Provider) {
this.provider = providerOrOptions;
} else if (providerOrOptions && providerOrOptions.rpc) {
this.provider = new RPCProvider(providerOrOptions.rpc);
this.provider = new RpcProvider(providerOrOptions.rpc);
} else {
this.provider = new SequencerProvider(providerOrOptions?.sequencer);
}
Expand Down
2 changes: 1 addition & 1 deletion src/provider/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { BlockIdentifier } from './utils';

export type RpcProviderOptions = { nodeUrl: string };

export class RPCProvider implements ProviderInterface {
export class RpcProvider implements ProviderInterface {
public nodeUrl: string;

public chainId!: StarknetChainId;
Expand Down

0 comments on commit fee4fb3

Please sign in to comment.