We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ad62f commit 22bb16aCopy full SHA for 22bb16a
packages/thirdweb/src/extensions/erc20/read/isERC20.ts
@@ -16,7 +16,13 @@ import { isTransferFromSupported } from "../__generated__/IERC20/write/transferF
16
* @example
17
* ```ts
18
* import { isERC20 } from "thirdweb/extensions/erc20";
19
- * const result = await isERC20({ contract });
+ *
20
+ * const abi = await resolveContractAbi<Abi>(contract);
21
+ * const selectors = abi
22
+ * .filter((f) => f.type === "function")
23
+ * .map((f) => toFunctionSelector(f));
24
25
+ * const result = await isERC20(selectors);
26
* ```
27
*/
28
export function isERC20(availableSelectors: string[]) {
0 commit comments