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,
functionToEstimateGas: Function,
...args: any[]
): Promise<number> {
): Promise<any> {
let estimatedGas = GASLIMIT_DEFAULT
try {
estimatedGas = await functionToEstimateGas.apply(null, args).estimateGas(