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:
parent
23101a185f
commit
2af104497a
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user