Skip to content

useContract gas limit #839

Discussion options

You must be logged in to vote

Using overrides resolved this issue

 overrides: {
      gasLimit: 21000,
 }

full usePrepareContractWrite:

 const { config  } = usePrepareContractWrite({
    addressOrName: collection?.address,
    contractInterface: ERC721Drop.abi,
    functionName: 'purchase',
    args: [mintCounter],
    overrides: {
      gasLimit: 21000,
    },
  })

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cormacncheese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants