Skip to content

Commit

Permalink
chore: forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bingen committed Sep 19, 2024
1 parent d3e7a5a commit f432021
Show file tree
Hide file tree
Showing 8 changed files with 212 additions and 75 deletions.
2 changes: 0 additions & 2 deletions contracts/src/NFTMetadata/MetadataNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ contract MetadataNFT is IMetadataNFT {
_status2Str(_troveData._status),
'"} ]'
);


}

function dynamicTextComponents(TroveData memory _troveData) public view returns (string memory) {
Expand Down
26 changes: 15 additions & 11 deletions contracts/src/NFTMetadata/utils/JSON.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,25 @@ library json {

string constant DOUBLE_QUOTES = '\\"';

function formattedMetadata(string memory name, string memory description, string memory svgImg, string memory attributes)
internal
pure
returns (string memory)
{
function formattedMetadata(
string memory name,
string memory description,
string memory svgImg,
string memory attributes
) internal pure returns (string memory) {
return string.concat(
"data:application/json;base64,",
encode(
bytes(
string.concat("{", _prop("name", name),
_prop("description", description),
_xmlImage(svgImg),
',"attributes":',
attributes,
"}")
string.concat(
"{",
_prop("name", name),
_prop("description", description),
_xmlImage(svgImg),
',"attributes":',
attributes,
"}"
)
)
)
);
Expand Down
13 changes: 3 additions & 10 deletions contracts/src/scripts/DeployLiquity2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -478,19 +478,12 @@ contract DeployLiquity2Script is Script, StdCheats, MetadataDeployment {

// deploy zappers
(contracts.gasCompZapper, contracts.wethZapper) =
_deployZappers(contracts.addressesRegistry, contracts.collToken, _weth);
_deployZappers(contracts.addressesRegistry, contracts.collToken, _weth);
}

function _deployZappers(
IAddressesRegistry _addressesRegistry,
IERC20 _collToken,
IWETH _weth
)
function _deployZappers(IAddressesRegistry _addressesRegistry, IERC20 _collToken, IWETH _weth)
internal
returns (
GasCompZapper gasCompZapper,
WETHZapper wethZapper
)
returns (GasCompZapper gasCompZapper, WETHZapper wethZapper)
{
bool lst = _collToken != _weth;
if (lst) {
Expand Down
Loading

0 comments on commit f432021

Please sign in to comment.