git.delta.rocks / unique-network / refs/commits / 1f267425b9a3

difftreelog

test fix build

Yaroslav Bolyukin2023-10-17parent: #d0d6ce4.patch.diff
in: master

5 files changed

modifiednode/cli/Cargo.tomldiffbeforeafterboth
--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -114,9 +114,7 @@
 	'quartz-runtime?/gov-test-timings',
 	'unique-runtime?/gov-test-timings',
 ]
-lookahead = [
-	'opal-runtime/lookahead'
-]
+lookahead = ['opal-runtime/lookahead']
 pov-estimate = [
 	'opal-runtime/pov-estimate',
 	'quartz-runtime?/pov-estimate',
modifiedpallets/inflation/src/tests.rsdiffbeforeafterboth
122 type Currency = Balances;122 type Currency = Balances;
123 type TreasuryAccountId = TreasuryAccountId;123 type TreasuryAccountId = TreasuryAccountId;
124 type InflationBlockInterval = InflationBlockInterval;124 type InflationBlockInterval = InflationBlockInterval;
125 type BlockNumberProvider = MockBlockNumberProvider;125 type OnInitializeBlockNumberProvider = MockBlockNumberProvider;
126}126}
127127
128pub fn new_test_ext() -> sp_io::TestExternalities {128pub fn new_test_ext() -> sp_io::TestExternalities {
modifiedpallets/unique/Cargo.tomldiffbeforeafterboth
--- a/pallets/unique/Cargo.toml
+++ b/pallets/unique/Cargo.toml
@@ -28,12 +28,12 @@
 	'pallet-evm-coder-substrate/std',
 	'pallet-evm/std',
 	'pallet-nonfungible/std',
+	'pallet-structure/std',
 	'parity-scale-codec/std',
 	'sp-runtime/std',
 	'sp-std/std',
 	'up-common/std',
 	'up-data-structs/std',
-	'pallet-structure/std',
 ]
 stubgen = ["evm-coder/stubgen", "pallet-common/stubgen"]
 try-runtime = ["frame-support/try-runtime"]
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -137,7 +137,7 @@
 	'sp-runtime/std',
 	'sp-session/std',
 	'sp-std/std',
-    'sp-storage/std',
+	'sp-storage/std',
 	'sp-transaction-pool/std',
 	'sp-version/std',
 	'staging-xcm-builder/std',
@@ -228,10 +228,10 @@
 foreign-assets = []
 gov-test-timings = []
 governance = []
+lookahead = []
 preimage = []
 refungible = []
 session-test-timings = []
-lookahead = []
 
 ################################################################################
 # local dependencies
modifiedruntime/tests/src/tests.rsdiffbeforeafterboth
--- a/runtime/tests/src/tests.rs
+++ b/runtime/tests/src/tests.rs
@@ -1161,7 +1161,7 @@
 		// Try to burn item using Token ID
 		assert_noop!(
 			Unique::burn_item(origin1, CollectionId(1), TokenId(1), 5).map_err(|e| e.error),
-			<pallet_fungible::Error::<Test>>::FungibleItemsHaveNoId
+			<CommonError::<Test>>::FungibleItemsHaveNoId
 		);
 	});
 }