Skip to content

Conversation

@dvc94ch
Copy link
Contributor

@dvc94ch dvc94ch commented Aug 10, 2019

  • nonce handling
  • uses default values from metadata
  • uses functions from metadata
  • removes dependency on srml_system::Trait and srml_balances::Trait.
  • adds doc comments
  • adds system, balances, contracts modules

depends on paritytech/substrate#3370

dvc94ch added 3 commits August 9, 2019 11:49
* use default values from metadata
* use functions from metadata
@dvc94ch dvc94ch requested a review from ascjones August 10, 2019 21:17
Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

LGTM

metadata: self.metadata.clone(),
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why can this no longer be derived?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It requires System: Clone, which is annoying from a usability perspective

src/metadata.rs Outdated
}
_ => None,
}
.ok_or(MetadataError::StorageTypeError)
Copy link
Contributor

Choose a reason for hiding this comment

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

Simpler just to return Ok and Err in the branches above?

.storage("FreeBalance")?
.get_map::<
<Self::Balances as System>::AccountId,
<Self::Balances as Balances>::Balance>()?)
Copy link
Contributor

Choose a reason for hiding this comment

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

This formatting done by rustfmt? Looks odd

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that is rustfmt... it's not perfect...

@dvc94ch dvc94ch merged commit 151c7f7 into paritytech:master Aug 12, 2019
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.

2 participants