Skip to content

Commit

Permalink
Upgrade python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
prozacchiwawa committed Apr 25, 2024
1 parent fd39929 commit 80947a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/py/binutils.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::collections::HashMap;

use crate::classic::clvm::__type_compatibility__::{Bytes, BytesFromType, Stream};
use crate::classic::clvm::casts::By;
use crate::classic::clvm::serialize::{sexp_from_stream, SimpleCreateCLVMObject};
use clvm_rs::allocator::{Allocator, NodePtr, SExp};

Expand Down Expand Up @@ -54,7 +55,7 @@ fn convert_to_external(

if !finished.contains_key(&node) {
let converted: PyObject = Python::with_gil(|py| {
let bytes = PyBytes::new(py, allocator.atom(node));
let bytes = PyBytes::new(py, By::new(allocator, node).u8());
let args = PyTuple::new(py, &[bytes]);
from_bytes.call1(args)
})?
Expand Down

0 comments on commit 80947a0

Please sign in to comment.