fix: addressed assembly text build mechanism (#9)

Use `build.assembly_text` for `--asm` output
This commit is contained in:
Chris
2024-05-08 03:36:17 -04:00
committed by GitHub
parent 95ff85c6d1
commit 169740eb5e
8 changed files with 44 additions and 117 deletions
@@ -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(),
) {