Skip to content

Commit 69d2b77

Browse files
committed
rename emission_values => emission_value
1 parent 913fb1a commit 69d2b77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pallets/subtensor/src/rpc_info/subnet_info.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct SubnetInfo<T: Config> {
2727
owner: T::AccountId,
2828
}
2929

30-
#[freeze_struct("c46dc4e2d4d9f8a3")]
30+
#[freeze_struct("da372105ad6aacb0")]
3131
#[derive(Decode, Encode, PartialEq, Eq, Clone, Debug)]
3232
pub struct SubnetInfov2<T: Config> {
3333
netuid: Compact<u16>,
@@ -45,7 +45,7 @@ pub struct SubnetInfov2<T: Config> {
4545
tempo: Compact<u16>,
4646
network_modality: Compact<u16>,
4747
network_connect: Vec<[u16; 2]>,
48-
emission_values: Compact<u64>,
48+
emission_value: Compact<u64>,
4949
burn: Compact<u64>,
5050
owner: T::AccountId,
5151
identity: Option<SubnetIdentityV2>,
@@ -172,7 +172,7 @@ impl<T: Config> Pallet<T> {
172172
let blocks_since_last_step = Self::get_blocks_since_last_step(netuid);
173173
let tempo = Self::get_tempo(netuid);
174174
let network_modality = <NetworkModality<T>>::get(netuid);
175-
let emission_values = Self::get_emission_value(netuid);
175+
let emission_value = Self::get_emission_value(netuid);
176176
let burn: Compact<u64> = Self::get_burn_as_u64(netuid).into();
177177
let identity: Option<SubnetIdentityV2> = SubnetIdentitiesV2::<T>::get(netuid);
178178

@@ -198,7 +198,7 @@ impl<T: Config> Pallet<T> {
198198
tempo: tempo.into(),
199199
network_modality: network_modality.into(),
200200
network_connect,
201-
emission_values: emission_values.into(),
201+
emission_value: emission_value.into(),
202202
burn,
203203
owner: Self::get_subnet_owner(netuid),
204204
identity,

0 commit comments

Comments
 (0)