@@ -1363,7 +1363,7 @@ impl_runtime_apis! {
13631363 }
13641364
13651365 fn get_delegate( delegate_account_vec: Vec <u8 >) -> Vec <u8 > {
1366- SubtensorModule :: get_delegate( delegate_account_vec) . map( |r| r. encode( ) ) . unwrap_or ( vec! [ ] )
1366+ SubtensorModule :: get_delegate( delegate_account_vec) . map( |r| r. encode( ) ) . unwrap_or_default ( )
13671367 }
13681368
13691369 fn get_delegated( delegatee_account_vec: Vec <u8 >) -> Vec <u8 > {
@@ -1379,7 +1379,7 @@ impl_runtime_apis! {
13791379 }
13801380
13811381 fn get_neuron_lite( netuid: u16 , uid: u16 ) -> Vec <u8 > {
1382- SubtensorModule :: get_neuron_lite( netuid, uid) . map( |r| r. encode( ) ) . unwrap_or ( vec! [ ] )
1382+ SubtensorModule :: get_neuron_lite( netuid, uid) . map( |r| r. encode( ) ) . unwrap_or_default ( )
13831383 }
13841384
13851385 fn get_neurons( netuid: u16 ) -> Vec <u8 > {
@@ -1388,13 +1388,13 @@ impl_runtime_apis! {
13881388 }
13891389
13901390 fn get_neuron( netuid: u16 , uid: u16 ) -> Vec <u8 > {
1391- SubtensorModule :: get_neuron( netuid, uid) . map( |r| r. encode( ) ) . unwrap_or ( vec! [ ] )
1391+ SubtensorModule :: get_neuron( netuid, uid) . map( |r| r. encode( ) ) . unwrap_or_default ( )
13921392 }
13931393 }
13941394
13951395 impl subtensor_custom_rpc_runtime_api:: SubnetInfoRuntimeApi <Block > for Runtime {
13961396 fn get_subnet_info( netuid: u16 ) -> Vec <u8 > {
1397- SubtensorModule :: get_subnet_info( netuid) . map( |r| r. encode( ) ) . unwrap_or ( vec! [ ] )
1397+ SubtensorModule :: get_subnet_info( netuid) . map( |r| r. encode( ) ) . unwrap_or_default ( )
13981398 }
13991399
14001400 fn get_subnets_info( ) -> Vec <u8 > {
@@ -1418,7 +1418,7 @@ impl_runtime_apis! {
14181418 }
14191419
14201420 fn get_subnet_hyperparams( netuid: u16 ) -> Vec <u8 > {
1421- SubtensorModule :: get_subnet_hyperparams( netuid) . map( |r| r. encode( ) ) . unwrap_or ( vec! [ ] )
1421+ SubtensorModule :: get_subnet_hyperparams( netuid) . map( |r| r. encode( ) ) . unwrap_or_default ( )
14221422 }
14231423 }
14241424
0 commit comments