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

Commit 5fe8ead

Browse files
authored
Merge branch '1.x' into issue/3513
2 parents 99a753a + 5829347 commit 5fe8ead

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/web3-eth-contract.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,8 +986,9 @@ methods.myMethod.encodeABI
986986
987987
myContract.methods.myMethod([param1[, param2[, ...]]]).encodeABI()
988988
989-
Encodes the ABI for this method. This can be used to send a transaction, call a method, or pass it into another smart contract's method as arguments.
989+
Encodes the ABI for this method. The resulting hex string is 32-bit function signature hash plus the passed parameters in Solidity tightly packed format. This can be used to send a transaction, call a method, or pass it into another smart contract's method as arguments. Set the `data` field on `web3.eth.sendTransaction` options as the `encodeABI()` result and it is the same as calling the contract method with `contract.myMethod.send()`.
990990

991+
Some use cases for `encodeABI()` include: preparing a smart contract transaction for a multisignature wallet, working with offline wallets and cold storage and creating transaction payload for complex smart contract proxy calls.
991992

992993
----------
993994
Parameters

packages/web3-core-promievent/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ var myFunc = function(){
4848

4949
// and run it
5050
myFunc()
51+
.on('done', console.log)
5152
.then(console.log);
52-
.on('done', console.log);
5353
```
5454

5555
[docs]: http://web3js.readthedocs.io/en/1.0/
@@ -59,4 +59,4 @@ myFunc()
5959
[deps-image]: https://david-dm.org/ethereum/web3.js/1.x/status.svg?path=packages/web3-core-promievent
6060
[deps-url]: https://david-dm.org/ethereum/web3.js/1.x?path=packages/web3-core-promievent
6161
[deps-dev-image]: https://david-dm.org/ethereum/web3.js/1.x/dev-status.svg?path=packages/web3-core-promievent
62-
[deps-dev-url]: https://david-dm.org/ethereum/web3.js/1.x?type=dev&path=packages/web3-core-promievent
62+
[deps-dev-url]: https://david-dm.org/ethereum/web3.js/1.x?type=dev&path=packages/web3-core-promievent

0 commit comments

Comments
 (0)