Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 4edc7e7

Browse files
committed
funcDocs fixed in utils and missing option properties added in the web3-eth-contract module
1 parent fbb260d commit 4edc7e7

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

packages/web3-eth-contract/src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,9 @@ Contract.prototype._executeMethod = function _executeMethod(){
900900
transactionBlockTimeout: _this._parent.transactionBlockTimeout,
901901
transactionConfirmationBlocks: _this._parent.transactionConfirmationBlocks,
902902
transactionPollingTimeout: _this._parent.transactionPollingTimeout,
903+
defaultCommon: _this._parent.defaultCommon,
904+
defaultChain: _this._parent.defaultChain,
905+
defaultHardfork: _this._parent.defaultHardfork,
903906
extraFormatters: extraFormatters
904907
})).createFunction();
905908

packages/web3-utils/src/utils.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ var isHex = function (hex) {
393393
* Returns true if given string is a valid Ethereum block header bloom.
394394
*
395395
* @method isBloom
396-
* @param {String} hex encoded bloom filter
396+
* @param {String} bloom encoded bloom filter
397397
* @return {Boolean}
398398
*/
399399
var isBloom = function (bloom) {
@@ -405,8 +405,8 @@ var isBloom = function (bloom) {
405405
* note: false positives are possible.
406406
*
407407
* @method isUserEthereumAddressInBloom
408-
* @param {String} hex encoded bloom filter
409-
* @param {String} hex ethereum addresss
408+
* @param {String} ethereumAddress encoded bloom filter
409+
* @param {String} bloom ethereum addresss
410410
* @return {Boolean}
411411
*/
412412
var isUserEthereumAddressInBloom = function (bloom, ethereumAddress) {
@@ -418,8 +418,8 @@ var isUserEthereumAddressInBloom = function (bloom, ethereumAddress) {
418418
* note: false positives are possible.
419419
*
420420
* @method isUserEthereumAddressInBloom
421-
* @param {String} hex encoded bloom filter
422-
* @param {String} hex contract addresss
421+
* @param {String} bloom encoded bloom filter
422+
* @param {String} contractAddress contract addresss
423423
* @return {Boolean}
424424
*/
425425
var isContractAddressInBloom = function (bloom, contractAddress) {
@@ -430,7 +430,7 @@ var isContractAddressInBloom = function (bloom, contractAddress) {
430430
* Returns true if given string is a valid log topic.
431431
*
432432
* @method isTopic
433-
* @param {String} hex encoded topic
433+
* @param {String} topic encoded topic
434434
* @return {Boolean}
435435
*/
436436
var isTopic = function (topic) {
@@ -442,8 +442,8 @@ var isTopic = function (topic) {
442442
* note: false positives are possible.
443443
*
444444
* @method isTopicInBloom
445-
* @param {String} hex encoded bloom filter
446-
* @param {String} hex encoded topic
445+
* @param {String} bloom encoded bloom filter
446+
* @param {String} topic encoded topic
447447
* @return {Boolean}
448448
*/
449449
var isTopicInBloom = function (bloom, topic) {
@@ -455,7 +455,7 @@ var isTopicInBloom = function (bloom, topic) {
455455
* note: false positives are possible.
456456
*
457457
* @method isInBloom
458-
* @param {String} hex encoded bloom filter
458+
* @param {String} bloom encoded bloom filter
459459
* @param {String | Uint8Array} topic encoded value
460460
* @return {Boolean}
461461
*/

0 commit comments

Comments
 (0)