fix: addressed assembly text build mechanism (#9)

Use `build.assembly_text` for `--asm` output
This commit is contained in:
Chris authored and GitHub committed 2024-05-08 09:36:17 +02:00
1 parent 95ff85c6d1
commit 169740eb5e
8 files changed
+44 -117

No files matched your search

@@ -278,11 +278,11 @@ where
)
})?;
let assembly_text = revive_linker::link(buffer.as_slice()).map(hex::encode)?;
let encoded_hex_text = revive_linker::link(buffer.as_slice()).map(hex::encode)?;
let build = match crate::polkavm::build_assembly_text(
contract_path,
assembly_text.as_str(),
encoded_hex_text.as_str(),
metadata_hash,
self.debug_config(),
) {