diff --git a/script/DeployMoodNft.s.sol b/script/DeployMoodNft.s.sol index f4e9ed4..ed98a2c 100644 --- a/script/DeployMoodNft.s.sol +++ b/script/DeployMoodNft.s.sol @@ -11,21 +11,14 @@ contract DeployMoodNft is Script { string memory sadSvg = vm.readFile("./img/sad.svg"); string memory happySvg = vm.readFile("./img/happy.svg"); vm.startBroadcast(); - MoodNft moodNft = new MoodNft( - svgToImageURI(sadSvg), - svgToImageURI(happySvg) - ); + MoodNft moodNft = new MoodNft(svgToImageURI(sadSvg), svgToImageURI(happySvg)); vm.stopBroadcast(); return moodNft; } - function svgToImageURI( - string memory svg - ) public pure returns (string memory) { + function svgToImageURI(string memory svg) public pure returns (string memory) { string memory baseURL = "data:image/svg+xml;base64,"; - string memory svgBase64Encoded = Base64.encode( - bytes(abi.encodePacked(svg)) - ); + string memory svgBase64Encoded = Base64.encode(bytes(abi.encodePacked(svg))); return string(abi.encodePacked(baseURL, svgBase64Encoded)); } }