Skip to content

Commit a9b450c

Browse files
committed
Run npm run format
1 parent f3b623e commit a9b450c

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

program-analysis/echidna/example/TestDepositWithPermit.sol

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ contract TestDepositWithPermit {
2323
}
2424

2525
//helper method to get signature, signs with private key 2
26-
function getSignature(address owner, address spender, uint256 assetAmount)
27-
internal
28-
returns (uint8 v, bytes32 r, bytes32 s)
29-
{
26+
function getSignature(
27+
address owner,
28+
address spender,
29+
uint256 assetAmount
30+
) internal returns (uint8 v, bytes32 r, bytes32 s) {
3031
bytes32 digest = keccak256(
3132
abi.encodePacked(
3233
"\x19\x01",
@@ -55,12 +56,10 @@ contract TestDepositWithPermit {
5556

5657
emit LogBalance(previousOwnerBalance, previousCallerBalance);
5758
(uint8 v, bytes32 r, bytes32 s) = getSignature(OWNER, address(this), amount);
58-
try asset.permit(OWNER, address(this), amount, block.timestamp, v, r, s) {}
59-
catch {
59+
try asset.permit(OWNER, address(this), amount, block.timestamp, v, r, s) {} catch {
6060
emit AssertionFailed("signature is invalid");
6161
}
62-
try asset.transferFrom(OWNER, address(this), amount) {}
63-
catch {
62+
try asset.transferFrom(OWNER, address(this), amount) {} catch {
6463
emit AssertionFailed("transferFrom reverted");
6564
}
6665
uint256 currentOwnerBalance = asset.balanceOf(OWNER);

static/script.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/22554992.js"></script>
1+
<script
2+
type="text/javascript"
3+
id="hs-script-loader"
4+
async
5+
defer
6+
src="//js.hs-scripts.com/22554992.js"
7+
></script>;

0 commit comments

Comments
 (0)