Skip to content

Commit

Permalink
Update packages/thirdweb/comparison/setup.md
Browse files Browse the repository at this point in the history
Co-authored-by: jxom  <[email protected]>
Signed-off-by: Jonas Daniels <[email protected]>
  • Loading branch information
jnsdls and jxom authored Jan 30, 2024
1 parent 636b41c commit 03c1d2e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/thirdweb/comparison/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@ const client = createPublicClient({
transport: http(),
});

const supply = await client.readContract({
address: "0x...",
abi,
functionName: "totalSupply",
});
const contract = getContract({ address: '0x...', abi, client })
const supply = await contract.read.totalSupply()
```

## `ethers`
Expand Down

0 comments on commit 03c1d2e

Please sign in to comment.