General Thread for practicing question formatting #4485
angelataylorllc
started this conversation in
General
Replies: 1 comment
-
Hi, Functions and state variables have to declare whether they are accessible by other contracts. Functions can be declared as
in your case you should declare your function as public so anyone can interact with it so it should look like:
check here to learn more https://docs.soliditylang.org/en/v0.8.17/contracts.html#visibility-and-getters |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, here's some code that's wrong:
And here is the error:
Just practicing :)
Beta Was this translation helpful? Give feedback.
All reactions