General Thread for practicing question formatting: Lession 5! #124
Replies: 3 comments
-
Have you set funders array and addressToAmountFunded mapping as public ? |
Beta Was this translation helpful? Give feedback.
-
I think the code that you have shared does not have any issues, could you share the entire solidity file? Also, even if the "addressToAmountFunded " does not have "public" visibility, the fund() function still works because "addressToAmountFunded " is treated as internal, which basically means that you won't be able to lookup the funded amount by different addresses from the map but the fund functionality still works fine. |
Beta Was this translation helpful? Give feedback.
-
Can you share your library and |
Beta Was this translation helpful? Give feedback.
-
TypeError: "msg.value" and "callvalue()" can only be used in payable public functions. Make the function "payable" or use an internal function to avoid this error
Beta Was this translation helpful? Give feedback.
All reactions