@@ -29,8 +29,7 @@ public class ERC1155 : Routable
2929 /// <summary>
3030 /// Interact with any ERC1155 compatible contract.
3131 /// </summary>
32- public ERC1155 ( string parentRoute , string contractAddress )
33- : base ( Routable . append ( parentRoute , "erc1155" ) )
32+ public ERC1155 ( string parentRoute , string contractAddress ) : base ( Routable . append ( parentRoute , "erc1155" ) )
3433 {
3534 this . contractAddress = contractAddress ;
3635 this . signature = new ERC1155Signature ( baseRoute , contractAddress ) ;
@@ -142,7 +141,7 @@ public async Task<string> Balance(string tokenId)
142141 {
143142 if ( Utils . IsWebGLBuild ( ) )
144143 {
145- return await Bridge . InvokeRoute < string > ( getRoute ( "balance" ) , new string [ ] { } ) ;
144+ return await Bridge . InvokeRoute < string > ( getRoute ( "balance" ) , Utils . ToJsonStringArray ( tokenId ) ) ;
146145 }
147146 else
148147 {
@@ -431,8 +430,7 @@ public class ERC1155ClaimConditions : Routable
431430 {
432431 private string contractAddress ;
433432
434- public ERC1155ClaimConditions ( string parentRoute , string contractAddress )
435- : base ( Routable . append ( parentRoute , "claimConditions" ) )
433+ public ERC1155ClaimConditions ( string parentRoute , string contractAddress ) : base ( Routable . append ( parentRoute , "claimConditions" ) )
436434 {
437435 this . contractAddress = contractAddress ;
438436 }
@@ -620,8 +618,7 @@ public class ERC1155Signature : Routable
620618 /// <summary>
621619 /// Generate, verify and mint signed mintable payloads
622620 /// </summary>
623- public ERC1155Signature ( string parentRoute , string contractAddress )
624- : base ( Routable . append ( parentRoute , "signature" ) )
621+ public ERC1155Signature ( string parentRoute , string contractAddress ) : base ( Routable . append ( parentRoute , "signature" ) )
625622 {
626623 this . contractAddress = contractAddress ;
627624 }
0 commit comments