Code Error (Test) #3319
Webitect0x
started this conversation in
General
Replies: 2 comments
-
@WebitectTech TypeError: blah blah blah.... Make the function "payable" or use an internal function to avoid this error. look at the functions modifiers (a.k.a function signature) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@WebitectTech Add payable keyword in function signature. function fund() public payable {
require(msg.value.getConversionRate() >= MIN_USD, "Not Enough Eth!"); //1e18 == 1 * 10 ** 10 == 1000000000000000000 (1eth)
funders.push(msg.sender);
addressToAmountFunded[msg.sender] = msg.value;
} |
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.
-
On this function I'm getting this error
This is not a real error it's just for testing
Beta Was this translation helpful? Give feedback.
All reactions