Add assumptions that must be held in assets module (#2867)

* Add assumptions that must be held in assets module

* Update srml/assets/src/lib.rs

Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com>

* Update srml/assets/src/lib.rs

Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com>
This commit is contained in:
Wei Tang
2019-06-15 10:30:36 +02:00
committed by Gavin Wood
parent e09045bde2
commit de4ab0653f
+8
View File
@@ -114,6 +114,14 @@
//! }
//! ```
//!
//! ## Assumptions
//!
//! Below are assumptions that must be held when using this module. If any of
//! them are violated, the behavior of this module is undefined.
//!
//! * The total count of assets should be less than
//! `Trait::AssetId::max_value()`.
//!
//! ## Related Modules
//!
//! * [`System`](../srml_system/index.html)