Make filter blockHash property name match EIP-234.

This commit is contained in:
Richard Moore 2020-05-20 23:56:26 -04:00
parent ed29fac376
commit b03c4edd31
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

View File

@ -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");