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 ed29fac commit b03c4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ export class Contract {
if (toBlock != null) {
logger.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock);
}
(<FilterByBlockHash>filter).blockhash = fromBlockOrBlockhash;
(<FilterByBlockHash>filter).blockHash = fromBlockOrBlockhash;
} else {
(<Filter>filter).fromBlock = ((fromBlockOrBlockhash != null) ? fromBlockOrBlockhash: 0);
(<Filter>filter).toBlock = ((toBlock != null) ? toBlock: "latest");
Expand Down

0 comments on commit b03c4ed

Please sign in to comment.