Thanks to visit codestin.com
Credit goes to github.com

Skip to content

GasLimit in useWeb3ExecuteFunction hook #323

@Belingheri

Description

@Belingheri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions