Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/plmc 262 update to 0943 #82

Merged
merged 9 commits into from Sep 5, 2023
Merged

Conversation

lrazovic
Copy link
Contributor

@lrazovic lrazovic commented Sep 5, 2023

TODO

@lrazovic lrazovic self-assigned this Sep 5, 2023
@linear
Copy link

linear bot commented Sep 5, 2023

Comment on lines 193 to 195
fn contains(id: &<Assets as fungibles::Inspect<AccountId>>::AssetId) -> bool {
!Assets::total_issuance(*id).is_zero()
!Assets::total_issuance(id.clone()).is_zero()
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Coming from the Parachain Template.

Comment on lines 310 to 320
impl Reserve for MultiAsset {
fn reserve(&self) -> Option<MultiLocation> {
if let AssetId::Concrete(location) = self.id.clone() {
if let AssetId::Concrete(location) = self.id {
let first_interior = location.first_interior();
let parents = location.parent_count();
match (parents, first_interior.clone()) {
(0, Some(Parachain(id))) => Some(MultiLocation::new(0, X1(Parachain(id.clone())))),
(1, Some(Parachain(id))) => Some(MultiLocation::new(1, X1(Parachain(id.clone())))),
match (parents, first_interior) {
(0, Some(Parachain(id))) => Some(MultiLocation::new(0, X1(Parachain(*id)))),
(1, Some(Parachain(id))) => Some(MultiLocation::new(1, X1(Parachain(*id)))),
(1, _) => Some(MultiLocation::parent()),
_ => None,
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lrazovic lrazovic marked this pull request as ready for review September 5, 2023 13:57
@lrazovic lrazovic merged commit 59a989f into main Sep 5, 2023
4 checks passed
@lrazovic lrazovic deleted the feature/plmc-262-update-to-0943 branch September 5, 2023 13:57
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.

Build failed with GCC-13
1 participant