setProposalThreshold

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

Example

import { sendTransaction } from "thirdweb";
import { setProposalThreshold } from "thirdweb/extensions/vote";
const transaction = setProposalThreshold({
contract,
newProposalThreshold: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function setProposalThreshold(
| { asyncParams: () => Promise<SetProposalThresholdParams> }
>,

Parameters

The options for the "setProposalThreshold" function.

Type

| { asyncParams: () => Promise<SetProposalThresholdParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.