Skip to content

Commit acb2fd2

Browse files
committed
fix: format
1 parent a14355b commit acb2fd2

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed

src/mocks/CreateTest.sol

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ contract CreateTest {
1212
// solhint-disable reason-string
1313
// solhint-disable avoid-low-level-calls
1414
// solhint-disable-next-line prettier/prettier
15-
fallback(bytes calldata input) external returns (bytes memory) {
15+
fallback(
16+
bytes calldata input
17+
) external returns (bytes memory) {
1618
uint8 kind = uint8(input[0]);
1719
input = input[1:];
1820

src/mocks/HostioTest.sol

+20-16
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ contract HostioTest {
1414
}
1515
}
1616

17-
function transientLoadBytes32(bytes32 key) external view returns (bytes32) {
17+
function transientLoadBytes32(
18+
bytes32 key
19+
) external view returns (bytes32) {
1820
bytes32 data;
1921
assembly {
2022
data := tload(key)
@@ -71,11 +73,15 @@ contract HostioTest {
7173
}
7274
}
7375

74-
function accountBalance(address account) external view returns (uint256) {
76+
function accountBalance(
77+
address account
78+
) external view returns (uint256) {
7579
return account.balance;
7680
}
7781

78-
function accountCode(address account) external view returns (bytes memory) {
82+
function accountCode(
83+
address account
84+
) external view returns (bytes memory) {
7985
uint256 size = 10000;
8086
bytes memory code = new bytes(size);
8187
assembly {
@@ -86,15 +92,19 @@ contract HostioTest {
8692
return code;
8793
}
8894

89-
function accountCodeSize(address account) external view returns (uint256) {
95+
function accountCodeSize(
96+
address account
97+
) external view returns (uint256) {
9098
uint256 size;
9199
assembly {
92100
size := extcodesize(account)
93101
}
94102
return size;
95103
}
96104

97-
function accountCodehash(address account) external view returns (bytes32) {
105+
function accountCodehash(
106+
address account
107+
) external view returns (bytes32) {
98108
bytes32 hash;
99109
assembly {
100110
hash := extcodehash(account)
@@ -154,19 +164,11 @@ contract HostioTest {
154164
return result;
155165
}
156166

157-
function mathAddMod(
158-
uint256 a,
159-
uint256 b,
160-
uint256 c
161-
) external pure returns (uint256) {
167+
function mathAddMod(uint256 a, uint256 b, uint256 c) external pure returns (uint256) {
162168
return addmod(a, b, c);
163169
}
164170

165-
function mathMulMod(
166-
uint256 a,
167-
uint256 b,
168-
uint256 c
169-
) external pure returns (uint256) {
171+
function mathMulMod(uint256 a, uint256 b, uint256 c) external pure returns (uint256) {
170172
return mulmod(a, b, c);
171173
}
172174

@@ -178,7 +180,9 @@ contract HostioTest {
178180
return msg.value;
179181
}
180182

181-
function keccak(bytes calldata preimage) external pure returns (bytes32) {
183+
function keccak(
184+
bytes calldata preimage
185+
) external pure returns (bytes32) {
182186
return keccak256(preimage);
183187
}
184188

0 commit comments

Comments
 (0)