fix: Forge fmt was going crazy in this function
It kept changing the formatting between two states and was never happy.. Took 4 minutes
This commit is contained in:
@@ -806,6 +806,7 @@ contract TychoRouter is
|
|||||||
/**
|
/**
|
||||||
* @dev Gets balance of a token for a given address. Supports both native ETH and ERC20 tokens.
|
* @dev Gets balance of a token for a given address. Supports both native ETH and ERC20 tokens.
|
||||||
*/
|
*/
|
||||||
|
// forgefmt: disable-start
|
||||||
function _balanceOf(address token, address owner)
|
function _balanceOf(address token, address owner)
|
||||||
internal
|
internal
|
||||||
view
|
view
|
||||||
@@ -813,7 +814,7 @@ contract TychoRouter is
|
|||||||
{
|
{
|
||||||
return
|
return
|
||||||
token == address(0) ? owner.balance : IERC20(token).balanceOf(owner);
|
token == address(0) ? owner.balance : IERC20(token).balanceOf(owner);
|
||||||
}
|
}// forgefmt: disable-end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Verifies that the expected amount of output tokens was received by the receiver.
|
* @dev Verifies that the expected amount of output tokens was received by the receiver.
|
||||||
|
|||||||
Reference in New Issue
Block a user