11#![ no_std]
2- use soroban_sdk:: { Address , Env , Map , String , Vec , contract, contractimpl, contracttype} ;
2+ use soroban_sdk:: { Address , Env , String , Vec , contract, contractimpl, contracttype} ;
33
44#[ derive( Clone ) ]
55#[ contracttype]
@@ -92,10 +92,10 @@ impl MindBlockContract {
9292 }
9393
9494 /// Get top players by XP (leaderboard)
95- pub fn get_leaderboard ( env : Env , limit : u32 ) -> Vec < Player > {
95+ pub fn get_leaderboard ( env : Env , _limit : u32 ) -> Vec < Player > {
9696 // Note: In production, implement proper pagination and sorting
9797 // This is a simplified version
98- let mut leaderboard = Vec :: new ( & env) ;
98+ let leaderboard = Vec :: new ( & env) ;
9999
100100 // This would need to be implemented with proper indexing
101101 // For now, returns empty vector as placeholder
@@ -156,7 +156,7 @@ mod test {
156156 #[ test]
157157 fn test_register_player ( ) {
158158 let env = Env :: default ( ) ;
159- let contract_id = env. register_contract ( None , MindBlockContract ) ;
159+ let contract_id = env. register ( MindBlockContract , ( ) ) ;
160160 let client = MindBlockContractClient :: new ( & env, & contract_id) ;
161161
162162 let player = Address :: generate ( & env) ;
@@ -173,7 +173,7 @@ mod test {
173173 #[ test]
174174 fn test_submit_puzzle ( ) {
175175 let env = Env :: default ( ) ;
176- let contract_id = env. register_contract ( None , MindBlockContract ) ;
176+ let contract_id = env. register ( MindBlockContract , ( ) ) ;
177177 let client = MindBlockContractClient :: new ( & env, & contract_id) ;
178178
179179 let player = Address :: generate ( & env) ;
0 commit comments