File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ contract SBTToken is ISBTToken, ERC721EnumerableUpgradeable {
153
153
string memory sbtAttributes = "" ;
154
154
155
155
if (stringDataPresent) {
156
- for (uint256 i = 0 ; i <= stringAttributes.length - 1 ; i++ ) {
156
+ for (uint256 i = 0 ; i < stringAttributes.length ; i++ ) {
157
157
string memory attributeInString = string (
158
158
abi.encodePacked (
159
159
'{"trait_type": " ' ,
@@ -194,7 +194,11 @@ contract SBTToken is ISBTToken, ERC721EnumerableUpgradeable {
194
194
if (i == 0 ) {
195
195
if (stringDataPresent) {
196
196
sbtAttributes = string (
197
- abi.encodePacked (", " , attributeInString)
197
+ abi.encodePacked (
198
+ sbtAttributes,
199
+ ", " ,
200
+ attributeInString
201
+ )
198
202
);
199
203
} else {
200
204
sbtAttributes = attributeInString;
You can’t perform that action at this time.
0 commit comments