Skip to content

Commit

Permalink
v10.18.3: fix estimateEvm
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Sep 15, 2023
1 parent f6ca90d commit 720d337
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion package.evm.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.solana.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/evm/estimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 720d337

Please sign in to comment.