@@ -14,7 +14,9 @@ contract HostioTest {
14
14
}
15
15
}
16
16
17
- function transientLoadBytes32 (bytes32 key ) external view returns (bytes32 ) {
17
+ function transientLoadBytes32 (
18
+ bytes32 key
19
+ ) external view returns (bytes32 ) {
18
20
bytes32 data;
19
21
assembly {
20
22
data := tload (key)
@@ -71,11 +73,15 @@ contract HostioTest {
71
73
}
72
74
}
73
75
74
- function accountBalance (address account ) external view returns (uint256 ) {
76
+ function accountBalance (
77
+ address account
78
+ ) external view returns (uint256 ) {
75
79
return account.balance;
76
80
}
77
81
78
- function accountCode (address account ) external view returns (bytes memory ) {
82
+ function accountCode (
83
+ address account
84
+ ) external view returns (bytes memory ) {
79
85
uint256 size = 10000 ;
80
86
bytes memory code = new bytes (size);
81
87
assembly {
@@ -86,15 +92,19 @@ contract HostioTest {
86
92
return code;
87
93
}
88
94
89
- function accountCodeSize (address account ) external view returns (uint256 ) {
95
+ function accountCodeSize (
96
+ address account
97
+ ) external view returns (uint256 ) {
90
98
uint256 size;
91
99
assembly {
92
100
size := extcodesize (account)
93
101
}
94
102
return size;
95
103
}
96
104
97
- function accountCodehash (address account ) external view returns (bytes32 ) {
105
+ function accountCodehash (
106
+ address account
107
+ ) external view returns (bytes32 ) {
98
108
bytes32 hash;
99
109
assembly {
100
110
hash := extcodehash (account)
@@ -154,19 +164,11 @@ contract HostioTest {
154
164
return result;
155
165
}
156
166
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 ) {
162
168
return addmod (a, b, c);
163
169
}
164
170
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 ) {
170
172
return mulmod (a, b, c);
171
173
}
172
174
@@ -178,7 +180,9 @@ contract HostioTest {
178
180
return msg .value ;
179
181
}
180
182
181
- function keccak (bytes calldata preimage ) external pure returns (bytes32 ) {
183
+ function keccak (
184
+ bytes calldata preimage
185
+ ) external pure returns (bytes32 ) {
182
186
return keccak256 (preimage);
183
187
}
184
188
0 commit comments