v4.0.1-rc.1
Pre-release
Pre-release
Changed
web3
- No need for polyfilling nodejs
net
andfs
modules (#5978) - Removed IPC provider dependency, IPC path is no longer viable provider. If you wanna use IPC, please install
web3-providers-ipc
and instantiate provider yourself (#5978)
web3-core
- If a transaction object with a
data
property is passed totxInputOptionsFormatter
, it will now be replaced withinput
(#5915) - The types
TransactionTypeParser
andTransactionBuilder
are now utilizing the typeTransaction
for the transaction object. (#5993) - No need for polyfilling nodejs
net
andfs
modules (#5978) - Removed IPC provider dependency, IPC path is no longer viable provider. If you wanna use IPC, please install
web3-providers-ipc
and instantiate provider yourself (#5978)
web3-errors
gasLimit
is no longer accepted as a parameter forMissingGasError
and `TransactionGasMismatchError, and is also no longer included in error message (#5915)
web3-eth
signTransaction
will now returngas
instead ofgasLimit
for returned transaction object regardless of what property name the provider uses (#5915)formatTransaction
will now replacedata
transaction property withinput
(#5915)isTransactionCall
will now check ifvalue.input
isHexStrict
if provided (#5915)- The functions
defaultTransactionBuilder
andtransactionBuilder
are now utilizing the typeTransaction
for the transaction object. (#5993)
web3-eth-accounts
- Moved @ethereumjs/tx, @ethereumjs/common code to our source code (#5963)
- The method
signTransaction
returned byprivateKeyToAccount
is now accepting the typeTransaction
for its argument. (#5993)
web3-eth-contract
getSendTxParams
will now returninput
instead ofdata
in returned transaction parameters object (#5915)Contract
constructor will now thrown newContractTransactionDataAndInputError
if bothdata
andinput
are passed inContractInitOptions
forContract
constructor (#5915)- The types
ContractInitOptions
,NonPayableCallOptions
andPayableCallOptions
are moved toweb3-types
. (#5993)
web3-types
data
property inTransactionOutput
was renamed toinput
(#5915)- The method
signTransaction
insideWeb3BaseWalletAccount
is now utilizing the typeTransaction
for its argument. (#5993) - The types
FMT_NUMBER
,NumberTypes
,FMT_BYTES
,ByteTypes
,DataFormat
,DEFAULT_RETURN_FORMAT
,ETH_DATA_FORMAT
andFormatType
moved fromweb3-utils
. (#5993) - The types
ContractInitOptions
,NonPayableCallOptions
andPayableCallOptions
are moved fromweb3-eth-contract
. (#5993)
web3-utils
- The types
FMT_NUMBER
,NumberTypes
,FMT_BYTES
,ByteTypes
,DataFormat
,DEFAULT_RETURN_FORMAT
,ETH_DATA_FORMAT
andFormatType
moved toweb3-types
. (#5993)
Added
web3
web3-core
web3-errors
web3-eth
- Added source files (#5956)
web3-eth-abi
web3-eth-accounts
web3-eth-contract
input
is now an acceptable property forContractInitOptions
in place ofdata
(either can be used, butinput
is used withing theContract
class) (#5915)- Added source files (#5956)
- Added hybrid build (ESM and CJS) of library (#5904)
web3-eth-ens
web3-eth-iban
web3-eth-personal
web3-net
web3-providers-http
web3-providers-ipc
web3-providers-ws
web3-rpc-methods
web3-types
web3-utils
web3-validator
- Added source files (#5956)
- Added hybrid build (ESM and CJS) of library (#5904)
- Added functions
isHexString
,isHexPrefixed
,validateNoLeadingZeroes
(#5963)
Removed
web3-core
getConfig
method fromWeb3Config
class,config
is now public and accessible usingWeb3Config.config
(#5950)
web3-eth
- Removed dependencies @ethereumjs/tx, @ethereumjs/common (#5963)
web3-eth-abi
- Removed
formatDecodedObject
function (#5934)
web3-eth-contract
data
was removed as a property ofContractOptions
type (#5915)
web3-utils
- Removed dependencies @ethereumjs/tx, @ethereumjs/common (#5963)
Fixed
web3-eth-ens
- Bug fix of
checkNetwork
in ENS (#5988)