issues getting stored value #3264
Fran6ix-coder
started this conversation in
General
Replies: 1 comment
-
That might be an issue with Foundry |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i stored a number in my smart contract using the store function.
this is the code
and i used "cast send 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 "store(uint256)" 123 --rpc-url $RPC_URL --private-key $PRIVATE_KEY" to send the number 123 to the store function as my favourite number.
i then wanted to see my favourite number so i used another command which is "cast call 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 "retrieve()" " to call the retrieve function to return my favourite number yet the output i get is zero.
please can someone help me fix this issue
Beta Was this translation helpful? Give feedback.
All reactions