Skip to content

Commit

Permalink
Update gelato_unprotected_randomness.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly authored Oct 10, 2024
1 parent 138b626 commit 9ce8302
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ contract C is GelatoVRFConsumerBase {
uint id = _requestRandomness(abi.encode(msg.sender));
}

// This is currently a FP due to the limitation of function.is_protected
function good2() public {
require(authorized[msg.sender]);
uint id = _requestRandomness(abi.encode(msg.sender));
Expand All @@ -58,4 +59,4 @@ contract C is GelatoVRFConsumerBase {
uint id = _requestRandomness(abi.encode(msg.sender));
}

}
}

0 comments on commit 9ce8302

Please sign in to comment.