Skip to content

Release 0.15.0

Compare
Choose a tag to compare
@frozeman frozeman released this 30 Oct 12:51

This release includes minor bug fixes and a new way to get the call data of a contract call.

To get the call data when creating a new contract:

web3.contract(myABI).new.getData(param1, param2, {data: '0x12345...'})
// Returns e.g:  0x1234500000000003240000000023423

To get the call data of a contract method

var my contract = web3.contract(myABI).at(address);

contract.myMethod.getData(param1, param2)
// Returns e.g:  0x1234500000000003240000000023423