ThirdwebSDK.getVote() method
Warning: This API is now obsolete.
This method is deprecated and will be removed in a future major version. You should use instead.
- const vote = await sdk.getVote("0x1234...");
+ const vote = await sdk.getContract("0x1234...", "vote");
Get an instance of a Vote contract
Signature:
getVote(contractAddress: string): Promise<import("..").Vote>;
Parameters
Parameter | Type | Description |
---|---|---|
contractAddress | string | the address of the deployed contract |
Returns:
Promise<import("..").Vote>