_Follow along with this video:_ --- ### Floating Pragma The first finding we're going to add to our `findings.md` comes from our notes on `floating pragma`. Remember, we can look through the repo for notes we've left by searching for our `@Audit` tag. This one should be easy for us as `Aderyn` caught it, and did most of the write up for us. Lets look at what `Aderyn` output. ```` ## L-2: Solidity pragma should be specific, not wide Consider using a specific version of Solidity in your contracts instead of a wide version. For example, instead of `pragma solidity ^0.8.0;`, use `pragma solidity 0.8.0;` - Found in src/PuppyRaffle.sol [Line: 3](src/PuppyRaffle.sol#L3) ```solidity pragma solidity ^0.7.6; ``` ```` At this point you may wish to copy the [**finding_layout.md**](https://github.com/Cyfrin/4-puppy-raffle-audit/blob/audit-data/audit-data/finding_layout.md) template we've been following into your audit repo. `Aderyn's` output actually looks really great. I personally would rate this as an informational, so I'm going to make a few changes/formatting adjustments, but ultimately this is what it's going to look like, easy! ```` ### I-1: Solidity pragma should be specific, not wide Consider using a specific version of Solidity in your contracts instead of a wide version. For example, instead of `pragma solidity ^0.8.0;`, use `pragma solidity 0.8.0;` - Found in src/PuppyRaffle.sol [Line: 3](src/PuppyRaffle.sol#L3) ```solidity pragma solidity ^0.7.6; ``` ```` Be sure to note your finding as actioned in your code base notes, and lets move onto the next one! ```js // report-written: use of floating pragma is bad! ```
Follow along with this video:
The first finding we're going to add to our findings.md
comes from our notes on floating pragma
. Remember, we can look through the repo for notes we've left by searching for our @Audit
tag.
This one should be easy for us as Aderyn
caught it, and did most of the write up for us. Lets look at what Aderyn
output.
At this point you may wish to copy the finding_layout.md template we've been following into your audit repo.
Aderyn's
output actually looks really great. I personally would rate this as an informational, so I'm going to make a few changes/formatting adjustments, but ultimately this is what it's going to look like, easy!
Be sure to note your finding as actioned in your code base notes, and lets move onto the next one!
Walkthrough of the floating pragma informational finding report.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Duration: 25min
Duration: 1h 18min
Duration: 35min
Duration: 2h 28min
Duration: 5h 03min
Duration: 5h 22min
Duration: 4h 33min
Duration: 2h 01min
Duration: 1h 40min