Skip to content

Commit

Permalink
fix: fix incorrect JSON encoding in ScrollBadgePowerRank example
Browse files Browse the repository at this point in the history
  • Loading branch information
Thegaram committed Jul 2, 2024
1 parent a68c8ab commit dcf4ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/badge/examples/ScrollBadgePowerRank.sol
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ contract ScrollBadgePowerRank is
string memory description = "Scroll Power Rank Badge";
string memory image = ""; // IPFS, HTTP, or data URL
string memory tokenUriJson = Base64.encode(
abi.encodePacked('{"name":"', name, '", "description":"', description, ', "image": "', image, '"}')
abi.encodePacked('{"name":"', name, '", "description":"', description, '", "image": "', image, '"}')
);
return string(abi.encodePacked("data:application/json;base64,", tokenUriJson));
}
Expand Down

0 comments on commit dcf4ef0

Please sign in to comment.