@@ -41,9 +41,9 @@ describe('SBT', () => {
41
41
. mint ( signers . userA . address , encodedMetadata )
42
42
)
43
43
. to . emit ( sbt , 'Minted' )
44
- . withArgs ( 0 , signers . userA . address )
44
+ . withArgs ( 1 , signers . userA . address )
45
45
46
- const uri = await sbt . tokenURI ( 0 )
46
+ const uri = await sbt . tokenURI ( 1 )
47
47
const uriInfo : string [ ] = uri . split ( ',' )
48
48
expect ( uriInfo [ 0 ] ) . to . equal ( 'data:application/json;base64' )
49
49
const decodedData = JSON . parse (
@@ -80,9 +80,9 @@ describe('SBT', () => {
80
80
. mint ( signers . userA . address , encodedMetadata )
81
81
)
82
82
. to . emit ( sbt , 'Minted' )
83
- . withArgs ( 0 , signers . userA . address )
83
+ . withArgs ( 1 , signers . userA . address )
84
84
85
- const uri = await sbt . tokenURI ( 0 )
85
+ const uri = await sbt . tokenURI ( 1 )
86
86
const uriInfo : string [ ] = uri . split ( ',' )
87
87
expect ( uriInfo [ 0 ] ) . to . equal ( 'data:application/json;base64' )
88
88
const decodedData = JSON . parse (
@@ -130,9 +130,9 @@ describe('SBT', () => {
130
130
. mint ( signers . userA . address , encodedMetadata )
131
131
)
132
132
. to . emit ( sbt , 'Minted' )
133
- . withArgs ( 0 , signers . userA . address )
133
+ . withArgs ( 1 , signers . userA . address )
134
134
135
- const uri = await sbt . tokenURI ( 0 )
135
+ const uri = await sbt . tokenURI ( 1 )
136
136
const uriInfo : string [ ] = uri . split ( ',' )
137
137
expect ( uriInfo [ 0 ] ) . to . equal ( 'data:application/json;base64' )
138
138
const decodedData = JSON . parse (
@@ -192,9 +192,9 @@ describe('SBT', () => {
192
192
. mint ( signers . userA . address , encodedMetadata )
193
193
)
194
194
. to . emit ( sbt , 'Minted' )
195
- . withArgs ( 0 , signers . userA . address )
195
+ . withArgs ( 1 , signers . userA . address )
196
196
197
- const uri = await sbt . tokenURI ( 0 )
197
+ const uri = await sbt . tokenURI ( 1 )
198
198
const uriInfo : string [ ] = uri . split ( ',' )
199
199
expect ( uriInfo [ 0 ] ) . to . equal ( 'data:application/json;base64' )
200
200
const decodedData = JSON . parse (
@@ -255,9 +255,9 @@ describe('SBT', () => {
255
255
. mint ( signers . userA . address , encodedMetadata )
256
256
)
257
257
. to . emit ( sbt , 'Minted' )
258
- . withArgs ( 0 , signers . userA . address )
258
+ . withArgs ( 1 , signers . userA . address )
259
259
260
- const uri = await sbt . tokenURI ( 0 )
260
+ const uri = await sbt . tokenURI ( 1 )
261
261
const uriInfo : string [ ] = uri . split ( ',' )
262
262
expect ( uriInfo [ 0 ] ) . to . equal ( 'data:application/json;base64' )
263
263
const decodedData = JSON . parse (
@@ -328,9 +328,9 @@ describe('SBT', () => {
328
328
. mint ( signers . userA . address , encodedMetadata )
329
329
)
330
330
. to . emit ( sbt , 'Minted' )
331
- . withArgs ( 0 , signers . userA . address )
331
+ . withArgs ( 1 , signers . userA . address )
332
332
333
- const uri = await sbt . tokenURI ( 0 )
333
+ const uri = await sbt . tokenURI ( 1 )
334
334
const uriInfo : string [ ] = uri . split ( ',' )
335
335
expect ( uriInfo [ 0 ] ) . to . equal ( 'data:application/json;base64' )
336
336
const decodedData = JSON . parse (
@@ -400,9 +400,9 @@ describe('SBT', () => {
400
400
. mint ( signers . userA . address , encodedMetadata )
401
401
)
402
402
. to . emit ( sbt , 'Minted' )
403
- . withArgs ( 0 , signers . userA . address )
403
+ . withArgs ( 1 , signers . userA . address )
404
404
405
- const uri = await sbt . tokenURI ( 0 )
405
+ const uri = await sbt . tokenURI ( 1 )
406
406
const uriInfo : string [ ] = uri . split ( ',' )
407
407
expect ( uriInfo [ 0 ] ) . to . equal ( 'data:application/json;base64' )
408
408
const decodedData = JSON . parse (
@@ -482,7 +482,7 @@ describe('SBT', () => {
482
482
. mint ( signers . userA . address , encodedMetadata )
483
483
)
484
484
. to . emit ( sbt , 'Minted' )
485
- . withArgs ( 0 , signers . userA . address )
485
+ . withArgs ( 1 , signers . userA . address )
486
486
487
487
const offChainEncodedParams = Buffer . from (
488
488
JSON . stringify ( {
@@ -495,7 +495,7 @@ describe('SBT', () => {
495
495
const offChainEncodedMetadata = 'data:application/json;base64,' . concat (
496
496
offChainEncodedParams
497
497
)
498
- const uri = await sbt . tokenURI ( 0 )
498
+ const uri = await sbt . tokenURI ( 1 )
499
499
expect ( uri ) . to . deep . eq ( offChainEncodedMetadata )
500
500
} )
501
501
@@ -519,7 +519,7 @@ describe('SBT', () => {
519
519
. mint ( signers . userA . address , encodedMetadata )
520
520
)
521
521
. to . emit ( sbt , 'Minted' )
522
- . withArgs ( 0 , signers . userA . address )
522
+ . withArgs ( 1 , signers . userA . address )
523
523
524
524
const offChainEncodedParams = Buffer . from (
525
525
JSON . stringify ( {
@@ -532,7 +532,7 @@ describe('SBT', () => {
532
532
const offChainEncodedMetadata = 'data:application/json;base64,' . concat (
533
533
offChainEncodedParams
534
534
)
535
- const uri = await sbt . tokenURI ( 0 )
535
+ const uri = await sbt . tokenURI ( 1 )
536
536
expect ( uri ) . to . deep . eq ( offChainEncodedMetadata )
537
537
} )
538
538
@@ -560,7 +560,7 @@ describe('SBT', () => {
560
560
. mint ( signers . userA . address , encodedMetadata )
561
561
)
562
562
. to . emit ( sbt , 'Minted' )
563
- . withArgs ( 0 , signers . userA . address )
563
+ . withArgs ( 1 , signers . userA . address )
564
564
565
565
const offChainEncodedParams = Buffer . from (
566
566
JSON . stringify ( {
@@ -577,7 +577,7 @@ describe('SBT', () => {
577
577
const offChainEncodedMetadata = 'data:application/json;base64,' . concat (
578
578
offChainEncodedParams
579
579
)
580
- const uri = await sbt . tokenURI ( 0 )
580
+ const uri = await sbt . tokenURI ( 1 )
581
581
expect ( uri ) . to . deep . eq ( offChainEncodedMetadata )
582
582
} )
583
583
@@ -607,7 +607,7 @@ describe('SBT', () => {
607
607
. mint ( signers . userA . address , encodedMetadata )
608
608
)
609
609
. to . emit ( sbt , 'Minted' )
610
- . withArgs ( 0 , signers . userA . address )
610
+ . withArgs ( 1 , signers . userA . address )
611
611
612
612
const offChainEncodedParams = Buffer . from (
613
613
JSON . stringify ( {
@@ -626,7 +626,7 @@ describe('SBT', () => {
626
626
const offChainEncodedMetadata = 'data:application/json;base64,' . concat (
627
627
offChainEncodedParams
628
628
)
629
- const uri = await sbt . tokenURI ( 0 )
629
+ const uri = await sbt . tokenURI ( 1 )
630
630
expect ( uri ) . to . deep . eq ( offChainEncodedMetadata )
631
631
} )
632
632
@@ -662,7 +662,7 @@ describe('SBT', () => {
662
662
. mint ( signers . userA . address , encodedMetadata )
663
663
)
664
664
. to . emit ( sbt , 'Minted' )
665
- . withArgs ( 0 , signers . userA . address )
665
+ . withArgs ( 1 , signers . userA . address )
666
666
667
667
const offChainEncodedParams = Buffer . from (
668
668
JSON . stringify ( {
@@ -691,7 +691,7 @@ describe('SBT', () => {
691
691
const offChainEncodedMetadata = 'data:application/json;base64,' . concat (
692
692
offChainEncodedParams
693
693
)
694
- const uri = await sbt . tokenURI ( 0 )
694
+ const uri = await sbt . tokenURI ( 1 )
695
695
expect ( uri ) . to . deep . eq ( offChainEncodedMetadata )
696
696
} )
697
697
@@ -721,7 +721,7 @@ describe('SBT', () => {
721
721
. mint ( signers . userA . address , encodedMetadata )
722
722
)
723
723
. to . emit ( sbt , 'Minted' )
724
- . withArgs ( 0 , signers . userA . address )
724
+ . withArgs ( 1 , signers . userA . address )
725
725
726
726
const offChainEncodedParams = Buffer . from (
727
727
JSON . stringify ( {
@@ -741,7 +741,7 @@ describe('SBT', () => {
741
741
const offChainEncodedMetadata = 'data:application/json;base64,' . concat (
742
742
offChainEncodedParams
743
743
)
744
- const uri = await sbt . tokenURI ( 0 )
744
+ const uri = await sbt . tokenURI ( 1 )
745
745
expect ( uri ) . to . deep . eq ( offChainEncodedMetadata )
746
746
} )
747
747
@@ -781,7 +781,7 @@ describe('SBT', () => {
781
781
. mint ( signers . userA . address , encodedMetadata )
782
782
)
783
783
. to . emit ( sbt , 'Minted' )
784
- . withArgs ( 0 , signers . userA . address )
784
+ . withArgs ( 1 , signers . userA . address )
785
785
786
786
const offChainEncodedParams = Buffer . from (
787
787
JSON . stringify ( {
@@ -813,7 +813,7 @@ describe('SBT', () => {
813
813
const offChainEncodedMetadata = 'data:application/json;base64,' . concat (
814
814
offChainEncodedParams
815
815
)
816
- const uri = await sbt . tokenURI ( 0 )
816
+ const uri = await sbt . tokenURI ( 1 )
817
817
expect ( uri ) . to . deep . eq ( offChainEncodedMetadata )
818
818
} )
819
819
} )
0 commit comments