examples and more contracts
This commit is contained in:
14
contracts/BadArrayUse.sol
Normal file
14
contracts/BadArrayUse.sol
Normal file
@ -0,0 +1,14 @@
|
||||
import './PullPaymentCapable.sol';
|
||||
|
||||
// UNSAFE CODE, DO NOT USE!
|
||||
|
||||
contract BadArrayUse is PullPaymentCapable {
|
||||
address[] employees;
|
||||
|
||||
function payroll() {
|
||||
for (var i = 0; i < employees.length; i++) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user