From ed29fac376c1a0aa210bf75979bb2ab62d0cf46b Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 20 May 2020 23:50:35 -0400 Subject: [PATCH] Make filter blockHash property name match EIP-234. --- packages/abstract-provider/src.ts/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/abstract-provider/src.ts/index.ts b/packages/abstract-provider/src.ts/index.ts index 4c63eb7e4..402f331e8 100644 --- a/packages/abstract-provider/src.ts/index.ts +++ b/packages/abstract-provider/src.ts/index.ts @@ -120,7 +120,7 @@ export interface Filter extends EventFilter { } export interface FilterByBlockHash extends EventFilter { - blockhash?: string; + blockHash?: string; } //export type CallTransactionable = { @@ -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 }); } }