mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 03:21:06 +00:00
Pallet Assets: Create new asset classes from genesis config (#9742)
* Pallet Assets: Allow creating asset classes from genesis config * Add accounts and metadata to genesis config * whitespace fixes * Update more chainspecs * Run rustfmt over code * More formatting fixes * Update frame/assets/src/lib.rs Improve error message Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> * Update frame/assets/src/lib.rs Improve error message Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -784,3 +784,13 @@ fn balance_conversion_should_work() {
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn assets_from_genesis_should_exist() {
|
||||
new_test_ext().execute_with(|| {
|
||||
assert!(Asset::<Test>::contains_key(999));
|
||||
assert!(Metadata::<Test>::contains_key(999));
|
||||
assert_eq!(Assets::balance(999, 1), 100);
|
||||
assert_eq!(Assets::total_supply(999), 100);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user