Open codehawks-bot opened 1 year ago
Gas Optimization / Informational
https://github.com/Cyfrin/2023-07-escrow/blob/main/src/Escrow.sol#L66
https://github.com/Cyfrin/2023-07-escrow/blob/main/src/Escrow.sol#L74
file: /src/Escrow.sol 66 modifier onlyBuyerOrSeller() {
file: /src/Escrow.sol 74 modifier onlyArbiter() {
A modifier used only once and not being inherited should be inlined to save gas
Severity
Gas Optimization / Informational
Relevant GitHub Links
https://github.com/Cyfrin/2023-07-escrow/blob/main/src/Escrow.sol#L66
https://github.com/Cyfrin/2023-07-escrow/blob/main/src/Escrow.sol#L74
Summary
[G-8] A modifier used only once and not being inherited should be inlined to save gas
https://github.com/Cyfrin/2023-07-escrow/blob/main/src/Escrow.sol#L66
https://github.com/Cyfrin/2023-07-escrow/blob/main/src/Escrow.sol#L74