diff --git a/dist/esm/index.evm.js b/dist/esm/index.evm.js index 67c0493..6562b04 100644 --- a/dist/esm/index.evm.js +++ b/dist/esm/index.evm.js @@ -26,8 +26,8 @@ var estimateEVM = ({ provider, from, to, value, method, api, params }) => { if(contract[method] === undefined) { method = `${method}(${fragment.inputs.map((input)=>input.type).join(',')})`; } - let contractMethod = contract.estimateGas[method]; let contractArguments = getContractArguments({ contract, method, params }); + let contractMethod = contract.estimateGas[method]; if(contractArguments) { return contractMethod(...contractArguments, { from, value }) } else { diff --git a/dist/esm/index.js b/dist/esm/index.js index ac19a07..59391d3 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -704,8 +704,8 @@ var estimateEVM = ({ provider, from, to, value, method, api, params }) => { if(contract[method] === undefined) { method = `${method}(${fragment.inputs.map((input)=>input.type).join(',')})`; } - let contractMethod = contract.estimateGas[method]; let contractArguments = getContractArguments({ contract, method, params }); + let contractMethod = contract.estimateGas[method]; if(contractArguments) { return contractMethod(...contractArguments, { from, value }) } else { diff --git a/dist/esm/index.solana.js b/dist/esm/index.solana.js index ca7a5bc..6be9ab2 100644 --- a/dist/esm/index.solana.js +++ b/dist/esm/index.solana.js @@ -462,8 +462,8 @@ var estimateEVM = ({ provider, from, to, value, method, api, params }) => { if(contract[method] === undefined) { method = `${method}(${fragment.inputs.map((input)=>input.type).join(',')})`; } - let contractMethod = contract.estimateGas[method]; let contractArguments = getContractArguments({ contract, method, params }); + let contractMethod = contract.estimateGas[method]; if(contractArguments) { return contractMethod(...contractArguments, { from, value }) } else { diff --git a/dist/umd/index.evm.js b/dist/umd/index.evm.js index 6616de6..8071973 100644 --- a/dist/umd/index.evm.js +++ b/dist/umd/index.evm.js @@ -33,8 +33,8 @@ if(contract[method] === undefined) { method = `${method}(${fragment.inputs.map((input)=>input.type).join(',')})`; } - let contractMethod = contract.estimateGas[method]; let contractArguments = getContractArguments({ contract, method, params }); + let contractMethod = contract.estimateGas[method]; if(contractArguments) { return contractMethod(...contractArguments, { from, value }) } else { diff --git a/dist/umd/index.js b/dist/umd/index.js index 2be5878..239685e 100644 --- a/dist/umd/index.js +++ b/dist/umd/index.js @@ -710,8 +710,8 @@ if(contract[method] === undefined) { method = `${method}(${fragment.inputs.map((input)=>input.type).join(',')})`; } - let contractMethod = contract.estimateGas[method]; let contractArguments = getContractArguments({ contract, method, params }); + let contractMethod = contract.estimateGas[method]; if(contractArguments) { return contractMethod(...contractArguments, { from, value }) } else { diff --git a/dist/umd/index.solana.js b/dist/umd/index.solana.js index 1607e5e..a176618 100644 --- a/dist/umd/index.solana.js +++ b/dist/umd/index.solana.js @@ -468,8 +468,8 @@ if(contract[method] === undefined) { method = `${method}(${fragment.inputs.map((input)=>input.type).join(',')})`; } - let contractMethod = contract.estimateGas[method]; let contractArguments = getContractArguments({ contract, method, params }); + let contractMethod = contract.estimateGas[method]; if(contractArguments) { return contractMethod(...contractArguments, { from, value }) } else { diff --git a/package.evm.json b/package.evm.json index c08c2ad..e00a546 100644 --- a/package.evm.json +++ b/package.evm.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client-evm", "moduleName": "Web3Client", - "version": "10.18.2", + "version": "10.18.3", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.evm.js", "module": "dist/esm/index.evm.js", diff --git a/package.json b/package.json index 1461208..f998a91 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client", "moduleName": "Web3Client", - "version": "10.18.2", + "version": "10.18.3", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.js", "module": "dist/esm/index.js", diff --git a/package.solana.json b/package.solana.json index 7eae185..57da873 100644 --- a/package.solana.json +++ b/package.solana.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client-solana", "moduleName": "Web3Client", - "version": "10.18.2", + "version": "10.18.3", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.solana.js", "module": "dist/esm/index.solana.js", diff --git a/src/platforms/evm/estimate.js b/src/platforms/evm/estimate.js index c2b2bed..e31c5d7 100644 --- a/src/platforms/evm/estimate.js +++ b/src/platforms/evm/estimate.js @@ -25,8 +25,8 @@ export default ({ provider, from, to, value, method, api, params }) => { if(contract[method] === undefined) { method = `${method}(${fragment.inputs.map((input)=>input.type).join(',')})` } - let contractMethod = contract.estimateGas[method] let contractArguments = getContractArguments({ contract, method, params }) + let contractMethod = contract.estimateGas[method] if(contractArguments) { return contractMethod(...contractArguments, { from, value }) } else {