Issue | Instances | |
---|---|---|
[GAS-01] | Remove useless check | 1 |
[GAS-02] | Function used only once can be inlined | 1 |
[GAS-03] | Setting the constructor to payable |
1 |
In the Escrow.sol
contract's constructor the buyer can not be address(0)
because it is passed as msg.sender
in EscrowFactory::newEscrow
.
Therefore the following check can be removed:
The function EscrowFactory::computeEscrowAddress
is used only once, so it can be inlined to save the gas of a function call. The function computeEscrowAddress()
can be removed and newEscrow()
modified as such:
constructor
to payable
Saves ~13 gas per instance
Instance (1):
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.