Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Update usecontractread.mdx #1111

Merged
merged 3 commits into from
Dec 8, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/react/hooks/core/usecontractread.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ function App() {

If you provide an additional argument to the hook, it will be used as the `CallOverrides` object send with your request.


To retrieve the sender's address using msg.sender in view functions within your smart contract, it is essential to include the property {from: 0X123} in order to access the relevant address information.
saminacodes marked this conversation as resolved.
Show resolved Hide resolved

```jsx
import { useContractRead, useContract, Web3Button } from "@thirdweb-dev/react";

Expand Down