Skip to content

Commit

Permalink
fix: change getStorageAt key param type to BigNumberish
Browse files Browse the repository at this point in the history
  • Loading branch information
badurinantun committed Jun 3, 2022
1 parent e756437 commit b8a8389
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/provider/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class Provider implements ProviderInterface {
*/
public async getStorageAt(
contractAddress: string,
key: number,
key: BigNumberish,
blockIdentifier: BlockIdentifier = 'pending'
): Promise<object> {
return this.fetchEndpoint('get_storage_at', { blockIdentifier, contractAddress, key });
Expand Down
2 changes: 1 addition & 1 deletion src/provider/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export abstract class ProviderInterface {
*/
public abstract getStorageAt(
contractAddress: string,
key: number,
key: BigNumberish,
blockIdentifier?: BlockIdentifier
): Promise<object>;

Expand Down
2 changes: 1 addition & 1 deletion src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type Endpoints = {
get_storage_at: {
QUERY: {
contractAddress: string;
key: number;
key: BigNumberish;
blockIdentifier: BlockIdentifier;
};
REQUEST: never;
Expand Down

0 comments on commit b8a8389

Please sign in to comment.