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
...
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.