diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index b4747732..d1540a3b 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -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: | diff --git a/README.md b/README.md index 9ce0cd5e..b299ecac 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file diff --git a/pallets/living-assets-ownership/src/lib.rs b/pallets/living-assets-ownership/src/lib.rs index 80ce60d5..ff8117bd 100644 --- a/pallets/living-assets-ownership/src/lib.rs +++ b/pallets/living-assets-ownership/src/lib.rs @@ -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. @@ -195,7 +195,7 @@ pub mod pallet { let to = T::H160ToAccountId::convert(to.clone()); AssetOwner::::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(()) } diff --git a/pallets/living-assets-ownership/src/tests.rs b/pallets/living-assets-ownership/src/tests.rs index f72bfeff..1b1cbf1a 100644 --- a/pallets/living-assets-ownership/src/tests.rs +++ b/pallets/living-assets-ownership/src/tests.rs @@ -370,7 +370,9 @@ mod traits { )); assert_eq!(AssetOwner::::get(collection_id, asset_id).unwrap(), BOB); assert_eq!(::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(), + ); }); }