Don't pack Substrate ctor module

This commit is contained in:
holygits
2019-01-24 10:18:18 +13:00
parent c47adc1bd4
commit 4f81bbc506
2 changed files with 12 additions and 12 deletions
-4
View File
@@ -195,10 +195,6 @@ pub fn pack_instance(raw_module: Vec<u8>, mut ctor_module: elements::Module, tar
])).build()
.build()
.build();
if let TargetRuntime::Substrate(_) = target {
return Ok(new_module)
}
for section in new_module.sections_mut() {
if let &mut Section::Export(ref mut export_section) = section {