mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
change return type for estimateGas()
This commit is contained in:
parent
429cce838e
commit
d435d3c2be
@ -85,7 +85,7 @@ export async function estimateGas(
|
|||||||
from: string,
|
from: string,
|
||||||
functionToEstimateGas: Function,
|
functionToEstimateGas: Function,
|
||||||
...args: any[]
|
...args: any[]
|
||||||
): Promise<any> {
|
): Promise<number> {
|
||||||
let estimatedGas = GASLIMIT_DEFAULT
|
let estimatedGas = GASLIMIT_DEFAULT
|
||||||
try {
|
try {
|
||||||
estimatedGas = await functionToEstimateGas.apply(null, args).estimateGas(
|
estimatedGas = await functionToEstimateGas.apply(null, args).estimateGas(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user