Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[4.0.1-alpha.1]
Added
- If an error happens when decoding a value, preserve that exception at
innerError
inside the error classAbiError
. (#5435) - Add basic functionality that is used, by
web3-eth-contract
, when decoding error data according to EIP-838. (#5434)
Fixed
- Return
BigInt
instead ofstring
when decoding function parameters for large numbers, such asuint256
. (#5435)
[4.0.1-alpha.2]
Changed
- Updated Web3.js dependencies (#5664)
Fixed
- Fix
ContractMethodOutputParameters
type to support output object types by index and string key. Also, it returns void if ABI doesn't have outputs and returns exactly one type if the output array has only one element. (#5631)
[4.0.1-alpha.3]
Fixed
- Parameters decoding error for nested components (#5714)
Changed
- Updated dependencies (#5725)
[4.0.1-alpha.4]
Changed
tsc
compiled files moved tolib/
directory fromdist/
(#5739)
[4.0.1-alpha.5]
[4.0.1-rc.0]
Removed
- Moved all types and interfaces to
web3-types
(#5771)
Added
decodeErrorData
fromweb3-eth-contract
is now exported from this package and was renamed todecodeContractErrorData
(#5844)
[4.0.1-rc.1]
Added
- Added hybrid build (ESM and CJS) of library (#5904)
- Added source files (#5956)
Removed
- Removed
formatDecodedObject
function (#5934)
[4.0.1-rc.2]
Changed
- Nested Smart Contract error data hex string is decoded when the error contains the data as object (when the data hex string is inside data.originalError.data or data.data) (#6045)
[4.0.1]
Release Notes:
Detailed List of change logs are mentioned under previous 4.x alpha and RC releases.
Documentation: Web3.js documentation Web3 API Migration Guide from 1.x
[4.0.2]
Fixed
- Support for "decoding" indexed string event arguments (returns the keccak256 hash of the string value instead of the actual string value) (#6167)
[4.0.3]
Changed
- Dependencies updated
[4.1.0]
Added
- A
getEncodedEip712Data
method that takes an EIP-712 typed data object and returns the encoded data with the option to also keccak256 hash it (#6286)
[4.1.1]
Changed
- Dependencies updated
[4.1.2]
Changed
- Dependencies updated
[4.1.3]
Fixed
- Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #6187" (#6506)
[4.1.4]
Fixed
- Bug fix of
ERR_UNSUPPORTED_DIR_IMPORT
in ABI (#6535)
[4.2.0]
Changed
- Use
AbiError
instead ofError
for errors at web3-eth-abi (#6641).
Fixed
- Fixed an issue with detecting Uint8Array (#6486)
[4.2.1]
Changed
- Dependencies updated
[4.2.2]
Changed
- Dependencies updated
[4.2.3]
Fixed
- fix encodedata in EIP-712 (#7095)
[4.2.4]
Added
- Handle common cases for smart contract errors according to EIP 838:
0x4e487b71
which is the ‘selector’ forPanic(uint256)
and0x08c379a0
is the ‘selector’ ofError(string)
. (7155)
[Unreleased]
Fixed
decodeLog
,decodeParametersWith
,decodeParameters
anddecodeParameters
now accepts first immutable param as well (#7288)