Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GasLimit in useWeb3ExecuteFunction hook #323

Open
2 tasks done
Belingheri opened this issue Mar 13, 2023 · 0 comments
Open
2 tasks done

GasLimit in useWeb3ExecuteFunction hook #323

Belingheri opened this issue Mar 13, 2023 · 0 comments

Comments

@Belingheri
Copy link

New Feature Request

Add the option to set the gasLimit when use the useWeb3ExecuteFunction hook

Checklist

Current Limitation

I cannot run my function on the chain caused by :

cannot estimate gas; transaction may fail or may require manual gas limit

Feature / Enhancement Description

Add in the option:

const { data, error, fetch, isFetching, isLoading } = useWeb3ExecuteFunction({
        abi: abi,
        contractAddress: raffleAddress!,
        functionName: "placeBet",
        params: {
            _roomSize: roomSize,
        },
        msgValue: ethers.utils.parseEther(bet.toString()).toString(),
        gasLimit:xxxx, // new param
    })

Example Use Case

Alternatives / Workarounds

3rd Party References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant