setProposalThreshold

Prepares a transaction to call the "setProposalThreshold" function on the contract.

Example

import { setProposalThreshold } from "thirdweb/extensions/vote";
const transaction = setProposalThreshold({
contract,
newProposalThreshold: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.