From ee283cf5eb2d7437f2bceb82f99242a7276f517d Mon Sep 17 00:00:00 2001 From: sandeep reddy <46469596+Sandeepreddyr12@users.noreply.github.com> Date: Mon, 4 Dec 2023 22:03:24 +0530 Subject: [PATCH] Update usecontractread.mdx #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 <46469596+Sandeepreddyr12@users.noreply.github.com> --- docs/react/hooks/core/usecontractread.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/react/hooks/core/usecontractread.mdx b/docs/react/hooks/core/usecontractread.mdx index a165d98ae..06b5f0945 100644 --- a/docs/react/hooks/core/usecontractread.mdx +++ b/docs/react/hooks/core/usecontractread.mdx @@ -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. +