Skip to content

Commit

Permalink
Update VRFD20 example to use calldata
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightjl committed May 24, 2024
1 parent 27d44f7 commit bc9251e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/samples/VRF/v2-5/VRFD20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ contract VRFD20 is VRFConsumerBaseV2Plus {
*/
function fulfillRandomWords(
uint256 requestId,
uint256[] memory randomWords
uint256[] calldata randomWords
) internal override {
uint256 d20Value = (randomWords[0] % 20) + 1;
s_results[s_rollers[requestId]] = d20Value;
Expand Down

0 comments on commit bc9251e

Please sign in to comment.