payable
functions cost less gas to execute since the compiler does not have to add extra checks to ensure that a payment wasn't provided. A constructor
can safely be marked as payable
since only the deployer can pass funds.
There is 1 instance of this issue.
File Link | Instance Count | Instance Link |
---|---|---|
Escrow.sol | 1 | 32 |
21 gas
baudit: a custom static code analysis tool; manual review
Mark the constructor
as payable
.
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.