You've answered 0 of 46Â questions correctly. (Clear)
Question #29 Difficulty:
According to the Solidity 0.8.17 compiler (200 optimization runs)
// Fill in the blank so that a call to C.g() works without issues
contract C {
struct S {
uint256 x;
}
function f(S ______ myStruct) private pure { // <---- blank
myStruct.x = 2;
}
function g() external pure {
S memory s;
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.