Skip to content

Commit 6c14848

Browse files
committed
Remove redundant contract argument in code examples
Eliminated the unnecessary 'contract' argument from the contract.Read<T> function calls in code-overview.tsx to match the correct method signature.
1 parent 80d5be8 commit 6c14848

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

apps/dashboard/src/@/components/contracts/code-overview.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ var contract = await ThirdwebManager.Instance.GetContract(
130130
131131
// Read from the contract
132132
var result = await contract.Read<T>(
133-
contract,
134133
"{{function}}",
135134
{{args}}
136135
);`,
@@ -145,7 +144,6 @@ var contract = await ThirdwebContract.Create(
145144
146145
// Read from the contract
147146
var result = await contract.Read<T>(
148-
contract,
149147
"{{function}}",
150148
{{args}}
151149
);`,

0 commit comments

Comments
 (0)