Skip to content

Commit

Permalink
add scale_info::TypeInfo derive in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeohepperle committed Nov 29, 2023
1 parent 5073502 commit 01ccb0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions subxt/src/utils/account_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use serde::{Deserialize, Serialize};
Debug,
scale_encode::EncodeAsType,
scale_decode::DecodeAsType,
scale_info::TypeInfo,
)]
pub struct AccountId32(pub [u8; 32]);

Expand Down
1 change: 1 addition & 0 deletions subxt/src/utils/era.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use scale_encode::EncodeAsType;
serde::Deserialize,
DecodeAsType,
EncodeAsType,
scale_info::TypeInfo,
)]
pub enum Era {
/// The transaction is valid forever. The genesis hash must be present in the signed content.
Expand Down
1 change: 1 addition & 0 deletions subxt/src/utils/multi_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use codec::{Decode, Encode};
Debug,
scale_encode::EncodeAsType,
scale_decode::DecodeAsType,
scale_info::TypeInfo,
)]
pub enum MultiAddress<AccountId, AccountIndex> {
/// It's an account ID (pubkey).
Expand Down

0 comments on commit 01ccb0c

Please sign in to comment.