You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactored defaultTransactionTypeParser to return correct EIP-2718 types, prior implementation was prioritizing transaction.hardfork and ignoring the use of transaction.gasLimit. defaultTransactionTypeParser will now throw InvalidPropertiesForTransactionTypeErrors for properties are used that are incompatible with transaction.type (defaultTransactionTypeParser Refactor #6102)
prepareTransactionForSigning and defaultTransactionBuilder now accepts optional fillGasPrice flag and by default will not fill gas(transaction integration tests #6071)
web3-eth-abi
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) (Parse nested error for Smartcontract errors #6045)
types FMT_BYTES.BUFFER, Bytes and FormatType and encryption option types for salt and iv has replaced support for Buffer for Uint8Array (Replace Buffer with uint8array #6004)
Added internalType property to the AbiParameter type.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Added
web3-errors
InvalidPropertiesForTransactionTypeError
with error code429
(defaultTransactionTypeParser
Refactor #6102)web3-eth-contract
getPastEvents
method to filterallEvents
and specific event (getPastEvents doesn't support filter #6010)maxPriorityFeePerGas
andmaxFeePerGas
inContractOptions
type and updated function using it in utils (Contract options fix #6118)web3-types
filters
param to theFilter
type (getPastEvents doesn't support filter #6010)JsonRpcSubscriptionResultOld
,Web3ProviderMessageEventCallback
. Added.on('data')
type support for old providers (Listening events on v4 is not working #6082)HardforksOrdered
enum (defaultTransactionTypeParser
Refactor #6102)Web3ValidationErrorObject
type (defaultTransactionTypeParser
Refactor #6102)web3-utils
hexstrict
parameter added to numberToHex (Replace Buffer with uint8array #6004)Fixed
web3-eth
ignoreGasPricing
bug with wallet in context (transaction integration tests #6071)web3-eth-accounts
Changed
web3-core
web3-errors
Eip838ExecutionError
constructor and the nested error is set atinnerError
(Parse nested error for Smartcontract errors #6045)web3-eth
formatTransaction
no longer throws aTransactionDataAndInputError
if it's passed a transaction object with bothdata
andinput
properties set (as long as they are the same value) (UpdateformatTransaction
to handle Nethermind edge case #6064)rpc_method_wrappers
to point to the previously duplicated documentation found under theWeb3Eth
class documentation (Refactorrpc_method_wrapper
docs to point toWeb3Eth
docs #6054)defaultTransactionTypeParser
to return correct EIP-2718 types, prior implementation was prioritizingtransaction.hardfork
and ignoring the use oftransaction.gasLimit
.defaultTransactionTypeParser
will now throwInvalidPropertiesForTransactionTypeError
s for properties are used that are incompatible withtransaction.type
(defaultTransactionTypeParser
Refactor #6102)prepareTransactionForSigning
anddefaultTransactionBuilder
now accepts optionalfillGasPrice
flag and by default will not fill gas(transaction integration tests #6071)web3-eth-abi
web3-eth-accounts
Buffer
forUint8Array
(Replace Buffer with uint8array #6004)recover
,encrypt
,privateKeyToAddress
does not support typeBuffer
but supports typeUint8Array
(Replace Buffer with uint8array #6004)parseAndValidatePrivateKey
returns a typeUint8Array
instead of typeBuffer
(Replace Buffer with uint8array #6004)web3-providers-ipc
web3-types
FMT_BYTES.BUFFER
,Bytes
andFormatType
and encryption option types forsalt
andiv
has replaced support forBuffer
forUint8Array
(Replace Buffer with uint8array #6004)internalType
property to theAbiParameter
type.web3-utils
hexToBytes
,randomBytes
does not return typeBuffer
but typeUint8Array
(Replace Buffer with uint8array #6004)sha3
andkeccak256Wrapper
does not accept typeBuffer
but typeUint8Array
(Replace Buffer with uint8array #6004)bytesToBuffer
has been removed for the usage ofbytesToUint8Array
(Replace Buffer with uint8array #6004)web3-validator
Removed
web3-eth-ens
web3-validator
Web3ValidationErrorObject
type is now exported fromweb3-types
package (defaultTransactionTypeParser
Refactor #6102)This discussion was created from the release v4.0.1-rc.2.
Beta Was this translation helpful? Give feedback.
All reactions