You've answered 0 of 46Â questions correctly. (Clear)
Question #28 Difficulty:
According to the Solidity 0.8.17 compiler (200 optimization runs)
// Fill in the blank so that a call to C.g() executes without issues:
contract C {
struct S {
uint256 x;
}
S private s;
function f(S ____ myStruct) private { // <--- blank
myStruct.x = 2;
}
function g() external {
f(s);
require (s.x == 2);
}
}
Problems? View a hint or try another question.
I give up, show me the answer (make 3 more attempts first).
Mode : Training
You are currently in training mode, answering random questions. Why not Start a new quiz? Then you can boast about your score, and invite your friends.