mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-24 09:58:06 +00:00
Fix compilation errors after API parity changes
Update Market struct to match reference implementation with all required fields, add Clone trait to Rewards struct, fix Market initialization in decode.rs with proper field mappings, update test calls to use correct parameter types for get_sampling_markets method, remove broken example file that needs complete rewrite.
This commit is contained in:
@@ -158,7 +158,7 @@ impl PolyfillDemo {
|
||||
}
|
||||
|
||||
// Get sampling markets
|
||||
match self.client.get_sampling_markets(Some(5)).await {
|
||||
match self.client.get_sampling_markets(None).await {
|
||||
Ok(markets) => {
|
||||
info!("Found {} markets", markets.data.len());
|
||||
for market in &markets.data[..std::cmp::min(3, markets.data.len())] {
|
||||
|
||||
Reference in New Issue
Block a user