1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

change return type

This commit is contained in:
Miquel A. Cabot 2022-04-05 15:28:35 +02:00
parent 23101a185f
commit 2af104497a

View File

@ -175,7 +175,7 @@ export async function estimateGas(
from: string, from: string,
functionToEstimateGas: Function, functionToEstimateGas: Function,
...args: any[] ...args: any[]
): Promise<number> { ): Promise<any> {
let estimatedGas = GASLIMIT_DEFAULT let estimatedGas = GASLIMIT_DEFAULT
try { try {
estimatedGas = await functionToEstimateGas.apply(null, args).estimateGas( estimatedGas = await functionToEstimateGas.apply(null, args).estimateGas(