Skip to content

Commit

Permalink
Explicit types and added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Mar 22, 2023
1 parent 6672b3e commit 29db017
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/contracts/src/test/dao/GasConsumerHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

pragma solidity 0.8.17;

/// @notice This contract is used for testing to consume gas.
contract GasConsumer {
mapping(uint256 => uint256) public store;

function consumeGas(uint256 count) external {
for (uint i = 0; i < count; i++) {
for (uint256 i = 0; i < count; i++) {
store[i] = 1;
}
}
Expand Down

0 comments on commit 29db017

Please sign in to comment.