From 4258476664dfa3dd397b5e666600b601561933d0 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Fri, 26 Jun 2020 08:57:55 -0700 Subject: [PATCH 1/2] =?UTF-8?q?Remove=20invisible=20=C3=82=20char=20from?= =?UTF-8?q?=20web3-utils=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/web3-utils/src/index.js | 16 ++++++++-------- packages/web3-utils/src/utils.js | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/web3-utils/src/index.js b/packages/web3-utils/src/index.js index 8230a244e9f..107b1786a94 100644 --- a/packages/web3-utils/src/index.js +++ b/packages/web3-utils/src/index.js @@ -372,12 +372,12 @@ module.exports = { leftPad: utils.leftPad, padRight: utils.rightPad, rightPad: utils.rightPad, - toTwosComplement: utils.toTwosComplement, - -    isBloom: utils.isBloom, -    isUserEthereumAddressInBloom: utils.isUserEthereumAddressInBloom, -    isContractAddressInBloom: utils.isContractAddressInBloom, -    isTopic: utils.isTopic, -    isTopicInBloom: utils.isTopicInBloom, -    isInBloom: utils.isInBloom + toTwosComplement: utils.toTwosComplement, + + isBloom: utils.isBloom, + isUserEthereumAddressInBloom: utils.isUserEthereumAddressInBloom, + isContractAddressInBloom: utils.isContractAddressInBloom, + isTopic: utils.isTopic, + isTopicInBloom: utils.isTopicInBloom, + isInBloom: utils.isInBloom }; diff --git a/packages/web3-utils/src/utils.js b/packages/web3-utils/src/utils.js index da0ec263031..3cc225d47cf 100644 --- a/packages/web3-utils/src/utils.js +++ b/packages/web3-utils/src/utils.js @@ -401,7 +401,7 @@ var isBloom = function (bloom) { }; /** - * Returns true if the ethereum users address is part of the given bloom + * Returns true if the ethereum users address is part of the given bloom * note: false positives are possible. * * @method isUserEthereumAddressInBloom @@ -414,7 +414,7 @@ var isUserEthereumAddressInBloom = function (bloom, ethereumAddress) { }; /** - * Returns true if the contract address is part of the given bloom + * Returns true if the contract address is part of the given bloom * note: false positives are possible. * * @method isUserEthereumAddressInBloom From 2ac70d59b097c4f6564db1aae839a798d897494f Mon Sep 17 00:00:00 2001 From: cgewecke Date: Fri, 26 Jun 2020 09:02:23 -0700 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cebe5e44a73..9864c669bf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -238,3 +238,4 @@ Released with 1.0.0-beta.37 code base. - Extend `_txInputFormatter` with hex prefix check (#3317) - Extract revert reason string for geth >= 1.9.15 (#3520) - Incorrect param encoding of BN object in arrayed inputs (#3592) +- Fix Chrome syntax error by removing mis-encoded whitespace characters from web3-utils files (#3601)