pub fn new_with_code(code: &[u8], mut inner: HashMap<Vec<u8>, Vec<u8>>) -> Self {
		let mut overlay = OverlayedChanges::default();
		super::set_changes_trie_config(
			&mut overlay,
			inner.get(&CHANGES_TRIE_CONFIG.to_vec()).cloned(),
			false,
		).expect("changes trie configuration is correct in test env; qed");

		inner.insert(HEAP_PAGES.to_vec(), 8u64.encode());

		BasicExternalities {
			inner,
			changes: overlay,
			code: Some(code.to_vec()),
		}
	}
/// Create a new instance of `BasicExternalities`
Create a new instance of `BasicExternalities`
Create a new instance of ` BasicExternalities `
pub fn new_with_code(code: &[u8], mut inner: HashMap<Vec<u8>, Vec<u8>>) -> Self {
		let mut overlay = OverlayedChanges::default();
		super::set_changes_trie_config(
			&mut overlay,
			inner.get(&CHANGES_TRIE_CONFIG.to_vec()).cloned(),
			false,
		).expect("changes trie configuration is correct in test env; qed");
		inner.insert(HEAP_PAGES.to_vec(), 8u64.encode());
		BasicExternalities {
			inner,
			changes: overlay,
			code: Some(code.to_vec()),
		}
	}
pub fn new_with_code ( code : & [ u8 ] , mut inner : HashMap < Vec < u8 > , Vec < u8 > > ) -> Self { let mut overlay = OverlayedChanges :: default ( ) ; super :: set_changes_trie_config ( & mut overlay , inner . get ( & CHANGES_TRIE_CONFIG . to_vec ( ) ) . cloned ( ) , false , ) . expect ( " " ) ; inner . insert ( HEAP_PAGES . to_vec ( ) , 8u64 . encode ( ) ) ; BasicExternalities { inner , changes : overlay , code : Some ( code . to_vec ( ) ) , } }
Create a new instance of `BasicExternalities`
Create a new instance of ` BasicExternalities `
code
&[u8]
inner
HashMap<Vec<u8>, Vec<u8>>
code
&[u8]
inner
HashMap<Vec<u8>, Vec<u8>>