@@ -313,8 +313,6 @@ public static TransactionRequest IssueNFT(
313313 CollectionProperties properties = null ,
314314 params IBinaryType [ ] args )
315315 {
316- var cost = networkConfig . ChainId == "T" ? ESDTAmount . EGLD ( "5" ) : ESDTAmount . EGLD ( "0.05" ) ;
317-
318316 if ( ! _nameValidation . IsMatch ( collectionName ) )
319317 throw new ArgumentException ( "Length should be between 3 and 20 characters, alphanumeric characters only" , nameof ( collectionName ) ) ;
320318
@@ -329,26 +327,26 @@ public static TransactionRequest IssueNFT(
329327 if ( properties != null )
330328 {
331329 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanFreeze ) ) ;
332- arguments . Add ( BooleanValue . From ( properties . CanFreeze ) ) ;
330+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanFreeze . ToString ( ) . ToLower ( ) ) ) ;
333331 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanWipe ) ) ;
334- arguments . Add ( BooleanValue . From ( properties . CanWipe ) ) ;
332+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanWipe . ToString ( ) . ToLower ( ) ) ) ;
335333 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanPause ) ) ;
336- arguments . Add ( BooleanValue . From ( properties . CanPause ) ) ;
334+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanPause . ToString ( ) . ToLower ( ) ) ) ;
337335 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanTransferNftCreateRole ) ) ;
338- arguments . Add ( BooleanValue . From ( properties . CanTransferNFTCreateRole ) ) ;
336+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanTransferNFTCreateRole . ToString ( ) . ToLower ( ) ) ) ;
339337 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanChangeOwner ) ) ;
340- arguments . Add ( BooleanValue . From ( properties . CanChangeOwner ) ) ;
338+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanChangeOwner . ToString ( ) . ToLower ( ) ) ) ;
341339 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanUpgrade ) ) ;
342- arguments . Add ( BooleanValue . From ( properties . CanUpgrade ) ) ;
340+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanUpgrade . ToString ( ) . ToLower ( ) ) ) ;
343341 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanAddSpecialRoles ) ) ;
344- arguments . Add ( BooleanValue . From ( properties . CanAddSpecialRoles ) ) ;
342+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanAddSpecialRoles . ToString ( ) . ToLower ( ) ) ) ;
345343 arguments . AddRange ( args ) ;
346344 }
347345
348346 var transaction = TransactionRequest . CreateCallSmartContractTransactionRequest ( networkConfig ,
349347 account ,
350348 SYSTEM_SMART_CONTRACT_ADDRESS ,
351- cost ,
349+ ESDTAmount . EGLD ( "0.05" ) ,
352350 ISSUE_NON_FUNGIBLE ,
353351 arguments . ToArray ( ) ) ;
354352
@@ -391,19 +389,19 @@ public static TransactionRequest IssueSFT(
391389 if ( properties != null )
392390 {
393391 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanFreeze ) ) ;
394- arguments . Add ( BooleanValue . From ( properties . CanFreeze ) ) ;
392+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanFreeze . ToString ( ) . ToLower ( ) ) ) ;
395393 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanWipe ) ) ;
396- arguments . Add ( BooleanValue . From ( properties . CanWipe ) ) ;
394+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanWipe . ToString ( ) . ToLower ( ) ) ) ;
397395 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanPause ) ) ;
398- arguments . Add ( BooleanValue . From ( properties . CanPause ) ) ;
396+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanPause . ToString ( ) . ToLower ( ) ) ) ;
399397 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanTransferNftCreateRole ) ) ;
400- arguments . Add ( BooleanValue . From ( properties . CanTransferNFTCreateRole ) ) ;
398+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanTransferNFTCreateRole . ToString ( ) . ToLower ( ) ) ) ;
401399 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanChangeOwner ) ) ;
402- arguments . Add ( BooleanValue . From ( properties . CanChangeOwner ) ) ;
400+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanChangeOwner . ToString ( ) . ToLower ( ) ) ) ;
403401 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanUpgrade ) ) ;
404- arguments . Add ( BooleanValue . From ( properties . CanUpgrade ) ) ;
402+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanUpgrade . ToString ( ) . ToLower ( ) ) ) ;
405403 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanAddSpecialRoles ) ) ;
406- arguments . Add ( BooleanValue . From ( properties . CanAddSpecialRoles ) ) ;
404+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanAddSpecialRoles . ToString ( ) . ToLower ( ) ) ) ;
407405 arguments . AddRange ( args ) ;
408406 }
409407
@@ -459,19 +457,19 @@ public static TransactionRequest IssueMetaESDT(
459457 if ( properties != null )
460458 {
461459 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanFreeze ) ) ;
462- arguments . Add ( BooleanValue . From ( properties . CanFreeze ) ) ;
460+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanFreeze . ToString ( ) . ToLower ( ) ) ) ;
463461 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanWipe ) ) ;
464- arguments . Add ( BooleanValue . From ( properties . CanWipe ) ) ;
462+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanWipe . ToString ( ) . ToLower ( ) ) ) ;
465463 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanPause ) ) ;
466- arguments . Add ( BooleanValue . From ( properties . CanPause ) ) ;
464+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanPause . ToString ( ) . ToLower ( ) ) ) ;
467465 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanTransferNftCreateRole ) ) ;
468- arguments . Add ( BooleanValue . From ( properties . CanTransferNFTCreateRole ) ) ;
466+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanTransferNFTCreateRole . ToString ( ) . ToLower ( ) ) ) ;
469467 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanChangeOwner ) ) ;
470- arguments . Add ( BooleanValue . From ( properties . CanChangeOwner ) ) ;
468+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanChangeOwner . ToString ( ) . ToLower ( ) ) ) ;
471469 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanUpgrade ) ) ;
472- arguments . Add ( BooleanValue . From ( properties . CanUpgrade ) ) ;
470+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanUpgrade . ToString ( ) . ToLower ( ) ) ) ;
473471 arguments . Add ( BytesValue . FromUtf8 ( ESDTCollectionProperties . CanAddSpecialRoles ) ) ;
474- arguments . Add ( BooleanValue . From ( properties . CanAddSpecialRoles ) ) ;
472+ arguments . Add ( BytesValue . FromUtf8 ( properties . CanAddSpecialRoles . ToString ( ) . ToLower ( ) ) ) ;
475473 arguments . AddRange ( args ) ;
476474 }
477475
@@ -1029,19 +1027,19 @@ public static TransactionRequest ChangeProperties(
10291027 {
10301028 collectionIdentifier ,
10311029 BytesValue . FromUtf8 ( ESDTCollectionProperties . CanFreeze ) ,
1032- BooleanValue . From ( properties . CanFreeze ) ,
1030+ BytesValue . FromUtf8 ( properties . CanFreeze . ToString ( ) . ToLower ( ) ) ,
10331031 BytesValue . FromUtf8 ( ESDTCollectionProperties . CanWipe ) ,
1034- BooleanValue . From ( properties . CanWipe ) ,
1032+ BytesValue . FromUtf8 ( properties . CanWipe . ToString ( ) . ToLower ( ) ) ,
10351033 BytesValue . FromUtf8 ( ESDTCollectionProperties . CanPause ) ,
1036- BooleanValue . From ( properties . CanPause ) ,
1034+ BytesValue . FromUtf8 ( properties . CanPause . ToString ( ) . ToLower ( ) ) ,
10371035 BytesValue . FromUtf8 ( ESDTCollectionProperties . CanTransferNftCreateRole ) ,
1038- BooleanValue . From ( properties . CanTransferNFTCreateRole ) ,
1036+ BytesValue . FromUtf8 ( properties . CanTransferNFTCreateRole . ToString ( ) . ToLower ( ) ) ,
10391037 BytesValue . FromUtf8 ( ESDTCollectionProperties . CanChangeOwner ) ,
1040- BooleanValue . From ( properties . CanChangeOwner ) ,
1038+ BytesValue . FromUtf8 ( properties . CanChangeOwner . ToString ( ) . ToLower ( ) ) ,
10411039 BytesValue . FromUtf8 ( ESDTCollectionProperties . CanUpgrade ) ,
1042- BooleanValue . From ( properties . CanUpgrade ) ,
1040+ BytesValue . FromUtf8 ( properties . CanUpgrade . ToString ( ) . ToLower ( ) ) ,
10431041 BytesValue . FromUtf8 ( ESDTCollectionProperties . CanAddSpecialRoles ) ,
1044- BooleanValue . From ( properties . CanAddSpecialRoles )
1042+ BytesValue . FromUtf8 ( properties . CanAddSpecialRoles . ToString ( ) . ToLower ( ) )
10451043 } ;
10461044 arguments . AddRange ( args ) ;
10471045
0 commit comments