Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ runs:
steps:
- uses: actions/checkout@v3
- name: Install linux dependencies
run: sudo apt-get install -y clang libssl-dev llvm libudev-dev protobuf-compiler
run: |
sudo apt update -yy
sudo apt-get install -y clang libssl-dev llvm libudev-dev protobuf-compiler
shell: bash
- name: Install Rust
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ The Arrakis network serves as the testnet for the LAOS Ownership Parachain. It c

## Contributing

Contributions to the LAOS Ownership Parachain project are welcome.
Contributions to the LAOS Ownership Parachain project are welcome.
6 changes: 3 additions & 3 deletions pallets/living-assets-ownership/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ pub mod pallet {
/// parameters. [collection_id, who]
CollectionCreated { collection_id: CollectionId, who: T::AccountId },
/// Asset transferred to `who`
/// parameters. [asset_id_id, who]
AssetTransferred { asset_id: U256, receiver: T::AccountId },
/// parameters. [collection_id, asset_id, who]
AssetTransferred { collection_id: CollectionId, asset_id: U256, to: T::AccountId },
}

// Errors inform users that something went wrong.
Expand Down Expand Up @@ -195,7 +195,7 @@ pub mod pallet {

let to = T::H160ToAccountId::convert(to.clone());
AssetOwner::<T>::set(collection_id, asset_id, Some(to.clone()));
Self::deposit_event(Event::AssetTransferred { asset_id, receiver: to });
Self::deposit_event(Event::AssetTransferred { collection_id, asset_id, to });

Ok(())
}
Expand Down
4 changes: 3 additions & 1 deletion pallets/living-assets-ownership/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ mod traits {
));
assert_eq!(AssetOwner::<Test>::get(collection_id, asset_id).unwrap(), BOB);
assert_eq!(<LivingAssetsModule as Erc721>::owner_of(1, asset_id).unwrap(), receiver);
System::assert_last_event(Event::AssetTransferred { asset_id, receiver: BOB }.into());
System::assert_last_event(
Event::AssetTransferred { collection_id, asset_id, to: BOB }.into(),
);
});
}

Expand Down