Skip to content

Commit

Permalink
Improve style
Browse files Browse the repository at this point in the history
  • Loading branch information
aefhm committed Nov 7, 2023
1 parent c02b1fb commit d37d105
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/dapp/sapphire/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,21 @@ in a transaction.

```solidity
contract GasExample {
bytes32 tmp;
bytes32 tmp;
function constantMath(bool doMath, uint128 padGasAmount) external {
if (doMath) {
bytes32 x;
function constantMath(bool doMath, uint128 padGasAmount) external {
if (doMath) {
bytes32 x;
for (uint256 i = 0; i < 100; i++) {
x = keccak256(abi.encodePacked(x, tmp));
}
for (uint256 i = 0; i < 100; i++) {
x = keccak256(abi.encodePacked(x, tmp));
}
tmp = x;
}
Sapphire.padGas(padGasAmount);
tmp = x;
}
Sapphire.padGas(padGasAmount);
}
}
```

Expand Down

0 comments on commit d37d105

Please sign in to comment.