-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
Signed-off-by: linning <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -516,6 +516,11 @@ impl DomainsDigestItem for DigestItem { | |
pub struct DomainInstanceData { | ||
pub runtime_type: RuntimeType, | ||
pub runtime_code: Vec<u8>, | ||
// The genesis config of the domain, encoded in json format. | ||
// | ||
// NOTE: the WASM code in the `system-pallet` genesis config should be empty to avoid | ||
// redundancy with the `runtime_code` field. | ||
pub raw_genesis_config: Option<Vec<u8>>, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
NingLin-P
Author
Member
|
||
} | ||
|
||
impl PassBy for DomainInstanceData { | ||
|
If it is JSON format, then it should be stored in a string (as it is guaranteed to be utf-8), using
Vec<u8>
while valid, is a bit confusing. Also I don't understand what the comment is trying to explain.