Skip to content

Commit

Permalink
Make filter blockHash property name match EIP-234.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed May 21, 2020
1 parent f963589 commit ed29fac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/abstract-provider/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export interface Filter extends EventFilter {
}

export interface FilterByBlockHash extends EventFilter {
blockhash?: string;
blockHash?: string;
}

//export type CallTransactionable = {
Expand All @@ -138,20 +138,20 @@ export abstract class ForkEvent extends Description {
}

export class BlockForkEvent extends ForkEvent {
readonly blockhash: string;
readonly blockHash: string;

readonly _isBlockForkEvent?: boolean;

constructor(blockhash: string, expiry?: number) {
if (!isHexString(blockhash, 32)) {
logger.throwArgumentError("invalid blockhash", "blockhash", blockhash);
constructor(blockHash: string, expiry?: number) {
if (!isHexString(blockHash, 32)) {
logger.throwArgumentError("invalid blockHash", "blockHash", blockHash);
}

super({
_isForkEvent: true,
_isBlockForkEvent: true,
expiry: (expiry || 0),
blockHash: blockhash
blockHash: blockHash
});
}
}
Expand Down

0 comments on commit ed29fac

Please sign in to comment.