Make filter blockHash property name match EIP-234.
This commit is contained in:
parent
f963589400
commit
ed29fac376
@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user