lesson 3 #2452
Answered
by
samaalshowmary
samaalshowmary
asked this question in
Q&A
lesson 3
#2452
Replies: 3 comments 10 replies
-
@samaalshowmary please share your code. |
Beta Was this translation helpful? Give feedback.
4 replies
-
@samaalshowmary : In your retrieve function add visibility view in the function then re deploy your contract it will appear!
Your retrieve function should look like this! |
Beta Was this translation helpful? Give feedback.
3 replies
-
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract simplestorage{
uint256 public favoirtnumber;
function store(uint256 _favoirtnumber) public {
favoirtnumber= _favoirtnumber;
uint256 test=3;
}
function retrive ()public view returns (uint256) {
return favoirtnumber;
}
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
alymurtazamemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
in the lesson 3 when we add the retrieve function I did not get the button of it like the store button I'm wondering why :(
Beta Was this translation helpful? Give feedback.
All reactions