mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 15:41:02 +00:00
[big refactor] Remove crate aliasing. (#4395)
* Rename: Phase 1. * Unify codec. * Fixing: Phase 2 * Fixing: Phase 3. * Fixing: Phase 4. * Fixing: Phase 5. * Fixing: Phase 6. * Fixing: Phase 7. * Fixing: Phase 8. Tests * Fixing: Phase 9. Tests!!! * Fixing: Phase 10. Moar tests! * Finally done! * More fixes. * Rename primitives:: to sp_core:: * Apply renames in finality-grandpa. * Fix benches. * Fix benches 2. * Revert node-template. * Fix frame-system in our modules.
This commit is contained in:
committed by
Gavin Wood
parent
f14d98a439
commit
8778ca7dc8
@@ -22,7 +22,7 @@
|
||||
|
||||
use super::*;
|
||||
use crate::mock::{new_test_ext, ExtBuilder, GenericAsset, Origin, System, Test, TestEvent};
|
||||
use support::{assert_noop, assert_ok};
|
||||
use frame_support::{assert_noop, assert_ok};
|
||||
|
||||
#[test]
|
||||
fn issuing_asset_units_to_issuer_should_work() {
|
||||
@@ -906,7 +906,7 @@ fn update_permission_should_throw_error_when_lack_of_permissions() {
|
||||
fn create_asset_works_with_given_asset_id_and_from_account() {
|
||||
ExtBuilder::default().next_asset_id(10).build().execute_with(|| {
|
||||
let origin = 1;
|
||||
let from_account: Option<<Test as system::Trait>::AccountId> = Some(1);
|
||||
let from_account: Option<<Test as frame_system::Trait>::AccountId> = Some(1);
|
||||
|
||||
let default_permission = PermissionLatest {
|
||||
update: Owner::Address(origin),
|
||||
@@ -943,7 +943,7 @@ fn create_asset_works_with_given_asset_id_and_from_account() {
|
||||
fn create_asset_with_non_reserved_asset_id_should_not_work() {
|
||||
ExtBuilder::default().next_asset_id(10).build().execute_with(|| {
|
||||
let origin = 1;
|
||||
let from_account: Option<<Test as system::Trait>::AccountId> = Some(1);
|
||||
let from_account: Option<<Test as frame_system::Trait>::AccountId> = Some(1);
|
||||
|
||||
let default_permission = PermissionLatest {
|
||||
update: Owner::Address(origin),
|
||||
@@ -977,7 +977,7 @@ fn create_asset_with_non_reserved_asset_id_should_not_work() {
|
||||
fn create_asset_with_a_taken_asset_id_should_not_work() {
|
||||
ExtBuilder::default().next_asset_id(10).build().execute_with(|| {
|
||||
let origin = 1;
|
||||
let from_account: Option<<Test as system::Trait>::AccountId> = Some(1);
|
||||
let from_account: Option<<Test as frame_system::Trait>::AccountId> = Some(1);
|
||||
|
||||
let default_permission = PermissionLatest {
|
||||
update: Owner::Address(origin),
|
||||
@@ -1022,7 +1022,7 @@ fn create_asset_with_a_taken_asset_id_should_not_work() {
|
||||
fn create_asset_should_create_a_reserved_asset_when_from_account_is_none() {
|
||||
ExtBuilder::default().next_asset_id(10).build().execute_with(|| {
|
||||
let origin = 1;
|
||||
let from_account: Option<<Test as system::Trait>::AccountId> = None;
|
||||
let from_account: Option<<Test as frame_system::Trait>::AccountId> = None;
|
||||
|
||||
let default_permission = PermissionLatest {
|
||||
update: Owner::Address(origin),
|
||||
@@ -1065,7 +1065,7 @@ fn create_asset_should_create_a_reserved_asset_when_from_account_is_none() {
|
||||
fn create_asset_should_create_a_user_asset() {
|
||||
ExtBuilder::default().next_asset_id(10).build().execute_with(|| {
|
||||
let origin = 1;
|
||||
let from_account: Option<<Test as system::Trait>::AccountId> = None;
|
||||
let from_account: Option<<Test as frame_system::Trait>::AccountId> = None;
|
||||
|
||||
let default_permission = PermissionLatest {
|
||||
update: Owner::Address(origin),
|
||||
|
||||
Reference in New Issue
Block a user