Calls the "state" function on the contract.
import { state } from "thirdweb/extensions/vote"; const result = await state({ contract, proposalId: ...,});
function state( options: BaseTransactionOptions<StateParams>,): Promise<number>;
The options for the state function.
let options: BaseTransactionOptions<StateParams>;
let returnType: Promise<number>;
The parsed result of the function call.