Skip to content

Conversation

@echevrier
Copy link
Contributor

Changes because of substrate:

  • Add Transactional Error
  • Module specific error value of ModuleError has changed

Add Transactional Error
Module specific error value of ModuleError has changed
}) => {
let error = metadata.error(index, error)?;
let error = metadata.error(index, error[0])?;
Ok(Self::Module(PalletError {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ModuleError has changed https://github.com/paritytech/substrate/blob/580ebae17fa30082604f1c9720f6f4a1cfe95b50/primitives/runtime/src/lib.rs#L476
But it seems that 0 value of error corresponds to the previous index

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For documentation purpose, relevant PR: paritytech/substrate#10242

@echevrier echevrier requested review from clangenb and haerdib April 20, 2022 16:18
Copy link
Contributor

@haerdib haerdib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Only one uncertainity: As the substrate-api-client is used by others as well, should we merge the polkadot branch into the master? Or leave it as a branch?

@clangenb what's your opinion?

@echevrier can you rename the branhc (or create a new one, doesn't matter for me) to polkadot-v0.9.19 ? We should keep the naming consistent with substrate

}) => {
let error = metadata.error(index, error)?;
let error = metadata.error(index, error[0])?;
Ok(Self::Module(PalletError {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For documentation purpose, relevant PR: paritytech/substrate#10242

@echevrier echevrier closed this Apr 21, 2022
@echevrier echevrier deleted the polkadot_v0.9.19 branch April 21, 2022 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants