File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,16 @@ contract SBTToken is ISBTToken, ERC721EnumerableUpgradeable {
138
138
for (uint256 i = 0 ; i < stringAttributes.length ; i++ ) {
139
139
string memory attributeInString = string (
140
140
abi.encodePacked (
141
- "{'trait_type': ' " ,
141
+ // solhint-disable-next-line quotes
142
+ '{"trait_type": " ' ,
142
143
stringAttributes[i].trait_type,
143
- "', " ,
144
- " 'value': ' " ,
144
+ // solhint-disable-next-line quotes
145
+ '", ' ,
146
+ // solhint-disable-next-line quotes
147
+ ' "value": " ' ,
145
148
stringAttributes[i].value,
146
- "'} "
149
+ // solhint-disable-next-line quotes
150
+ '"} '
147
151
)
148
152
);
149
153
@@ -160,15 +164,21 @@ contract SBTToken is ISBTToken, ERC721EnumerableUpgradeable {
160
164
for (uint256 i = 0 ; i < numberAttributes.length ; i++ ) {
161
165
string memory attributeInString = string (
162
166
abi.encodePacked (
163
- "{'trait_type': ' " ,
167
+ // solhint-disable-next-line quotes
168
+ '{"trait_type": " ' ,
164
169
numberAttributes[i].trait_type,
165
- "', " ,
166
- " 'display_type': ' " ,
170
+ // solhint-disable-next-line quotes
171
+ '", ' ,
172
+ // solhint-disable-next-line quotes
173
+ ' "display_type": " ' ,
167
174
numberAttributes[i].display_type,
168
- "', " ,
169
- " 'value': ' " ,
175
+ // solhint-disable-next-line quotes
176
+ '", ' ,
177
+ // solhint-disable-next-line quotes
178
+ ' "value": " ' ,
170
179
numberAttributes[i].value.toString (),
171
- "'} "
180
+ // solhint-disable-next-line quotes
181
+ '"} '
172
182
)
173
183
);
174
184
You can’t perform that action at this time.
0 commit comments