reverting web3.client changes
MODIFY
src/common/Web3Client.ts
src/common/Web3Client.ts
@@ -88,22 +88,33 @@ export default class Web3Client {
!_options.chainId ? web3.eth.net.getId() : _options.chainId,
])
- const web3Options = {
+ if (supportsEip1559 && !_options.gasPrice) {
+ return {
from,
gas: gasLimit,
gasLimit: gasLimit,
+ maxFeePerGas,
+ maxPriorityFeePerGas,
nonce,
chainId,
value: _options.value || 0,
to: _options.to || null,
- data: _options.data,
+ data: _options.data || txObject.encodeABI(),
encodeAbi: _options.encodeAbi || false,
}
-
- if (supportsEip1559 && !_options.gasPrice) {
- return Object.assign(web3Options, { maxFeePerGas, maxPriorityFeePerGas })
} else {
- return Object.assign(web3Options, { gasPrice })
+ return {
+ from,
+ gas: gasLimit,
+ gasLimit: gasLimit,
+ gasPrice,
+ nonce,
+ chainId,
+ value: _options.value || 0,
+ to: _options.to || null,
+ data: _options.data,
+ encodeAbi: _options.encodeAbi || false,
+ }
}
}

reverting web3.client changes