Skip to content

Commit

Permalink
Enable public access to inner tuple for Grandpa and BABE AccountId.
Browse files Browse the repository at this point in the history
  • Loading branch information
luka-ethernal committed May 26, 2023
1 parent a13ad63 commit b68af96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions avail-subxt/src/primitives/babe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde_hex::{SerHex, StrictPfx};
use crate::api::runtime_types::{sp_consensus_babe::app::Public, sp_core::sr25519::Signature};

#[derive(Decode)]
pub struct AuthorityId(Public);
pub struct AuthorityId(pub Public);

impl Serialize for AuthorityId {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
Expand All @@ -18,7 +18,7 @@ impl Serialize for AuthorityId {
}

#[derive(Decode)]
pub struct AuthoritySignature(Signature);
pub struct AuthoritySignature(pub Signature);

impl Serialize for AuthoritySignature {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
Expand Down
2 changes: 1 addition & 1 deletion avail-subxt/src/primitives/grandpa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde::{Serialize, Serializer};
use crate::api::runtime_types::sp_finality_grandpa::app::Public;

#[derive(Decode)]
pub struct AuthorityId(Public);
pub struct AuthorityId(pub Public);

impl Serialize for AuthorityId {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
Expand Down

0 comments on commit b68af96

Please sign in to comment.