@@ -50,13 +50,13 @@ library console3 {
5050 return string .concat (spaces (n > bytes (s).length ? n - bytes (s).length : 0 ), s);
5151 }
5252
53- function logERC20 (IERC20 token , address [] memory accounts ) internal view {
53+ function logERC20 (address token , address [] memory accounts ) internal view {
5454 string memory message = "" ;
55- uint256 maxDigits = digits (token.totalSupply ());
55+ uint256 maxDigits = digits (IERC20 ( token) .totalSupply ());
5656
5757 message = string .concat (message, _buildERC20Header (maxDigits));
58- message = string .concat (message, _buildERC20Rows (token, accounts, maxDigits));
59- message = string .concat (message, _buildERC20Footer (token, accounts, maxDigits));
58+ message = string .concat (message, _buildERC20Rows (IERC20 ( token) , accounts, maxDigits));
59+ message = string .concat (message, _buildERC20Footer (IERC20 ( token) , accounts, maxDigits));
6060
6161 console.log (message);
6262 }
@@ -132,13 +132,13 @@ library console3 {
132132 }
133133 }
134134
135- function logERC4626 (IERC4626 vault , address [] memory accounts ) internal view {
135+ function logERC4626 (address vault , address [] memory accounts ) internal view {
136136 string memory message = "" ;
137- uint256 maxDigits = digits (Math.max (vault.totalSupply (), vault.totalAssets ()));
137+ uint256 maxDigits = digits (Math.max (IERC4626 ( vault) .totalSupply (), IERC4626 ( vault) .totalAssets ()));
138138
139139 message = string .concat (message, _buildERC4626Header (maxDigits));
140- message = string .concat (message, _buildERC4626Rows (vault, accounts, maxDigits));
141- message = string .concat (message, _buildERC4626Footer (vault, accounts, maxDigits));
140+ message = string .concat (message, _buildERC4626Rows (IERC4626 ( vault) , accounts, maxDigits));
141+ message = string .concat (message, _buildERC4626Footer (IERC4626 ( vault) , accounts, maxDigits));
142142
143143 console.log (message);
144144 }
0 commit comments