This repository was archived by the owner on Mar 5, 2025. It is now read-only.
v4.1.0
Added
web3
- Added minimum support of web3.extend function
web3-core
- Added minimum support of web3.extend function
web3-errors
RpcErrorMessagesthat contains mapping for standard RPC Errors and their messages. (#6230)- created
TransactionGasMismatchInnerErrorfor clarity on the error inTransactionGasMismatchError(#6215) - created
MissingGasInnerErrorfor clarity on the error inMissingGasError(#6215)
web3-eth
- A
rpc_method_wrapper(signTypedData) for the rpc callseth_signTypedDataandeth_signTypedData_v4(#6286) - A
signTypedDatamethod to theWeb3Ethclass (#6286)
web3-eth-abi
- A
getEncodedEip712Datamethod that takes an EIP-712 typed data object and returns the encoded data with the option to also keccak256 hash it (#6286)
web3-rpc-methods
- A
signTypedDatamethod toeth_rpc_methodsfor the rpc callseth_signTypedDataandeth_signTypedData_v4(#6286)
web3-types
eth_signTypedDataandeth_signTypedData_v4toweb3_eth_execution_api(#6286)Eip712TypeDetailsandEip712TypedDatatoeth_types(#6286)
web3-validator
- Added
json-schemaas a main json schema type (#6264)
Fixed
web3-core
web3-errors
web3-eth
- sendTransaction will have gas filled by default using method
estimateGasunless transaction builderoptions.fillGasis false. (#6249) - Missing
blockHeaderSchemaproperties causing some properties to not appear in response ofnewHeadssubscription (#6243) - Missing
blockHeaderSchemaproperties causing some properties to not appear in response ofnewHeadssubscription (#6243)
web3-providers-ws
- Ensure a fixed version for "@types/ws": "8.5.3" (#6309)
Changed
web3-core
- No need to pass
CommonSubscriptionEvents &at every child class ofWeb3Subscription(#6262) - Implementation of
_processSubscriptionResultand_processSubscriptionErrorhas been written in the base classWeb3Subscriptionand maidpublic. (#6262) - A new optional protected method
formatSubscriptionResultcould be used to customize data formatting instead of re-implementing_processSubscriptionResult. (#6262) - No more needed to pass
CommonSubscriptionEvents &for the first generic parameter ofWeb3Subscriptionwhen inheriting from it. (#6262)
web3-eth
MissingGasErrorerror message changed for clarity (#6215)inputanddataare no longer auto populated for transaction objects if they are not present. Instead, whichever property is provided by the user is formatted and sent to the RPC provider. Transaction objects returned from RPC responses are still formatted to contain bothinputanddataproperties (#6294)
web3-eth-accounts
- Dependencies updated
web3-eth-contract
- Dependencies updated
web3-eth-ens
- Dependencies updated
web3-eth-iban
- Dependencies updated
web3-eth-personal
- Dependencies updated
web3-net
- Dependencies updated
web3-providers-http
- Dependencies updated
web3-providers-ipc
- Dependencies updated
web3-types
inputanddataare now optional properties onPopulatedUnsignedBaseTransaction(previouslyinputwas a required property, anddatawas not available) (#6294)
web3-utils
- Dependencies updated
web3-validator
- Replace
is-my-json-validwithzoddependency. Related code was changed (#6264) - Types
ValidationErrorandJsonSchemawere changed (#6264)
Removed
web3-eth
- Missing
blockHeaderSchemaproperties causing some properties to not appear in response ofnewHeadssubscription (#6243) - Type
RawValidationErrorwas removed (#6264)
web3-validator
- Type
RawValidationErrorwas removed (#6264)