Skip to content

Commit

Permalink
fix valid json
Browse files Browse the repository at this point in the history
using _prop adds quotes, but attributes is a list, so should not have them.
  • Loading branch information
cupOJoseph committed Sep 12, 2024
1 parent ea067e2 commit f743b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/src/NFTMetadata/utils/JSON.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ library json {
string.concat("{", _prop("name", name),
_prop("description", description),
_xmlImage(svgImg),
",",
_prop("attributes", attributes),
',"attributes":',
attributes,
"}")
)
)
Expand Down

0 comments on commit f743b2c

Please sign in to comment.