1
0
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:
Miquel A. Cabot 2022-06-10 22:52:07 +02:00
parent 429cce838e
commit d435d3c2be

View File

@ -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(