diff --git a/data/chaduke-G.md b/data/chaduke-G.md index fb95fc0..b5f6375 100644 --- a/data/chaduke-G.md +++ b/data/chaduke-G.md @@ -45,4 +45,7 @@ Eliminating the first condition can save gas since the second condition + the un if ( _settings.drawingTokenEndId - _settings.drawingTokenStartId < 2 ) revert DRAWING_TOKEN_RANGE_INVALID(); -``` \ No newline at end of file +``` + +G9. https://github.com/code-423n4/2022-12-forgeries/blob/fc271cf20c05ce857d967728edfb368c58881d85/src/VRFNFTRandomDraw.sol#L230-L233 +Caching ``setting`` can save gas for this function. \ No newline at end of file