Skip to content

Commit

Permalink
0x33 is the new g1_negate opcode which clvm_tools' disassemble isn't …
Browse files Browse the repository at this point in the history
…aware of. Choose the original code set for compatibility
  • Loading branch information
prozacchiwawa committed Mar 9, 2024
1 parent 426bdca commit 45744ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion resources/tests/test_binutils_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"(1 2 3 . ())",
"(1 2 3)",
"((4 5 6) (7 8 9))",
"(i (q . 1) (q . 2) (q . 3))"
"(i (q . 1) (q . 2) (q . 3))",
"((0x33 . i))"
]

def extend_atom():
Expand Down
2 changes: 1 addition & 1 deletion src/py/binutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub fn disassemble_generic(program_bytes: &PyBytes) -> PyResult<String> {
)
.map_err(|e| ConvError::new_err(e.to_string()))?;

let disassembled = binutils::disassemble(&allocator, sexp.1, None);
let disassembled = binutils::disassemble(&allocator, sexp.1, Some(0));
Ok(disassembled)
}

Expand Down

0 comments on commit 45744ff

Please sign in to comment.