@@ -27,7 +27,7 @@ impl Contract {
2727 //Query for nft tokens on the contract regardless of the owner using pagination
2828 pub fn nft_tokens ( & self , from_index : Option < u128 > , limit : Option < u64 > ) -> Vec < JsonToken > {
2929 //where to start pagination - if we have a from_index, we'll use that - otherwise start from 0 index
30- let start = u128 :: from ( from_index. unwrap_or ( 0 ) ) ;
30+ let start = from_index. unwrap_or ( 0 ) ;
3131
3232 //iterate through each token using an iterator
3333 self . tokens_by_id
@@ -97,7 +97,7 @@ impl Contract {
9797 // Paginate through all the series on the contract and return the a vector of JsonSeries
9898 pub fn get_series ( & self , from_index : Option < u128 > , limit : Option < u64 > ) -> Vec < JsonSeries > {
9999 //where to start pagination - if we have a from_index, we'll use that - otherwise start from 0 index
100- let start = u128 :: from ( from_index. unwrap_or ( 0 ) ) ;
100+ let start = from_index. unwrap_or ( 0 ) ;
101101
102102 //iterate through each series using an iterator
103103 self . series_by_id
@@ -159,7 +159,7 @@ impl Contract {
159159 } ;
160160
161161 //where to start pagination - if we have a from_index, we'll use that - otherwise start from 0 index
162- let start = u128 :: from ( from_index. unwrap_or ( 0 ) ) ;
162+ let start = from_index. unwrap_or ( 0 ) ;
163163
164164 //iterate through the tokens
165165 tokens
0 commit comments