leonardocustodio / polkadart

Polkadart provides developers the ability to query a node and interact with the Polkadot based chains using Dart.
https://polkadart.dev
Apache License 2.0
39 stars 16 forks source link

Fix typo in v14 metadata parser #318

Closed HolyGrease closed 1 year ago

HolyGrease commented 1 year ago

Description

Fix typo in metadata parser.

For example chain contains event like so:

pub enum Event<T: Config> {
  AccountUpdated {
    account_id: T::AccountId,
    username: T::Username,
    new_username: Option<T::Username>,
    phone_number_hash: T::PhoneNumberHash,
    new_phone_number_hash: Option<T::PhoneNumberHash>,
  },
  // ...
}

Now after decoding chain events you get something like this, where instead of field names uses field types:

{
  T::AccountId: ...,
  T::Username: ...,
  // ...
}

But the actual value should be:

{
  account_id: ...,
  username: ...,
  // ...
}
justkawal commented 1 year ago

Closing this as no followup is taken and everything already seems to be working fine without the typo.