Skip to content

Commit ce02d7c

Browse files
author
Yash Agrawal
committed
Merge remote-tracking branch 'origin/main' into feat-update-sbt
2 parents 1050a3b + 5afea89 commit ce02d7c

File tree

4 files changed

+1567
-10
lines changed

4 files changed

+1567
-10
lines changed

contracts/SBT.sol

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
117117
string memory attributeInString = string(
118118
abi.encodePacked(
119119
// solhint-disable-next-line quotes
120-
'{"trait_type": "',
120+
'{"trait_type":"',
121121
stringAttributes[i].trait_type,
122122
// solhint-disable-next-line quotes
123123
'",',
124124
// solhint-disable-next-line quotes
125-
' "value": "',
125+
'"value":"',
126126
stringAttributes[i].value,
127127
// solhint-disable-next-line quotes
128128
'"}'
@@ -134,7 +134,7 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
134134
sbtAttributes = attributeInString;
135135
} else {
136136
sbtAttributes = string(
137-
abi.encodePacked(sbtAttributes, ", ", attributeInString)
137+
abi.encodePacked(sbtAttributes, ",", attributeInString)
138138
);
139139
}
140140
}
@@ -143,17 +143,17 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
143143
string memory attributeInString = string(
144144
abi.encodePacked(
145145
// solhint-disable-next-line quotes
146-
'{"trait_type": "',
146+
'{"trait_type":"',
147147
numberAttributes[i].trait_type,
148148
// solhint-disable-next-line quotes
149149
'",',
150150
// solhint-disable-next-line quotes
151-
' "display_type": "',
151+
'"display_type":"',
152152
numberAttributes[i].display_type,
153153
// solhint-disable-next-line quotes
154154
'",',
155155
// solhint-disable-next-line quotes
156-
' "value": "',
156+
'"value":"',
157157
numberAttributes[i].value.toString(),
158158
// solhint-disable-next-line quotes
159159
'"}'
@@ -164,7 +164,7 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
164164
sbtAttributes = attributeInString;
165165
} else {
166166
sbtAttributes = string(
167-
abi.encodePacked(sbtAttributes, ", ", attributeInString)
167+
abi.encodePacked(sbtAttributes, ",", attributeInString)
168168
);
169169
}
170170
}
@@ -181,13 +181,13 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
181181
'{"name":"',
182182
name,
183183
// solhint-disable-next-line quotes
184-
'", "description":"',
184+
'","description":"',
185185
description,
186186
// solhint-disable-next-line quotes
187-
'", "image": "',
187+
'","image":"',
188188
tokenUriImage,
189189
// solhint-disable-next-line quotes
190-
'", "attributes":',
190+
'","attributes":',
191191
sbtAttributes,
192192
"}"
193193
)

0 commit comments

Comments
 (0)