File tree 4 files changed +9
-7
lines changed
4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ public async Task<NFT> Get(string tokenId)
44
44
/// <summary>
45
45
/// Get a all NFTs in this contract
46
46
/// </summary>
47
- public async Task < List < NFT > > GetAll ( )
47
+ public async Task < List < NFT > > GetAll ( QueryAllParams queryParams = null )
48
48
{
49
- return await Bridge . InvokeRoute < List < NFT > > ( getRoute ( "getAll" ) , new string [ ] { } ) ;
49
+ return await Bridge . InvokeRoute < List < NFT > > ( getRoute ( "getAll" ) , Utils . ToJsonStringArray ( queryParams ) ) ;
50
50
}
51
51
52
52
/// <summary>
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ public async Task<NFT> Get(string tokenId)
44
44
/// <summary>
45
45
/// Get a all NFTs in this contract
46
46
/// </summary>
47
- public async Task < List < NFT > > GetAll ( )
47
+ public async Task < List < NFT > > GetAll ( QueryAllParams queryParams = null )
48
48
{
49
- return await Bridge . InvokeRoute < List < NFT > > ( getRoute ( "getAll" ) , new string [ ] { } ) ;
49
+ return await Bridge . InvokeRoute < List < NFT > > ( getRoute ( "getAll" ) , Utils . ToJsonStringArray ( queryParams ) ) ;
50
50
}
51
51
52
52
/// <summary>
Original file line number Diff line number Diff line change @@ -149,7 +149,6 @@ public class ClaimConditions
149
149
public string availableSupply ;
150
150
public string currentMintSupply ;
151
151
public CurrencyValue currencyMetadata ;
152
- public string price ;
153
152
public string currencyAddress ;
154
153
public string maxClaimableSupply ;
155
154
public string maxClaimablePerWallet ;
Original file line number Diff line number Diff line change @@ -51,15 +51,18 @@ public async void OnSignClick()
51
51
public async void GetERC721 ( )
52
52
{
53
53
// fetch single NFT
54
- var contract = sdk . GetContract ( "0x2e01763fA0e15e07294D74B63cE4b526B321E389" ) ; // NFT Drop
54
+ var contract = sdk . GetContract ( "0x2e01763fA0e15e07294D74B63cE4b526B321E389" ) ; // NFT Drop
55
55
count ++ ;
56
56
resultText . text = "Fetching Token: " + count ;
57
57
NFT result = await contract . ERC721 . Get ( count . ToString ( ) ) ;
58
58
resultText . text = result . metadata . name + "\n owned by " + result . owner . Substring ( 0 , 6 ) + "..." ;
59
59
60
60
// fetch all NFTs
61
61
// resultText.text = "Fetching all NFTs";
62
- // List<NFT> result = await contract.ERC721.GetAll();
62
+ // List<NFT> result = await contract.ERC721.GetAll(new Thirdweb.QueryAllParams() {
63
+ // start = 0,
64
+ // count = 10,
65
+ // });
63
66
// resultText.text = "Fetched " + result.Count + " NFTs";
64
67
// for (int i = 0; i < result.Count; i++) {
65
68
// Debug.Log(result[i].metadata.name + " owned by " + result[i].owner);
You can’t perform that action at this time.
0 commit comments