Skip to content

Commit

Permalink
Update usecontractread.mdx
Browse files Browse the repository at this point in the history
thirdweb-dev#864 

This pull request aims to enhance the documentation by providing clarity on retrieving the sender's address using msg.sender in view functions within a smart contract. The proposed addition emphasizes the significance of including the specifier {from: 0X.....} to access the relevant address information.

Signed-off-by: sandeep reddy <[email protected]>
  • Loading branch information
Sandeepreddyr12 authored Dec 4, 2023
1 parent 9dbc287 commit ee283cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/react/hooks/core/usecontractread.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,7 @@ function App() {
}
```

To retrieve the sender's address using msg.sender in view functions within your smart contract, it is essential to include the specifier {from: "0X123"} in order to access the relevant address information.

</div>
</details>

0 comments on commit ee283cf

Please sign in to comment.