From 80947a0ddced456fedb8cc9471e65710f743925b Mon Sep 17 00:00:00 2001 From: arty Date: Thu, 25 Apr 2024 13:49:03 -0700 Subject: [PATCH] Upgrade python bindings --- src/py/binutils.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/py/binutils.rs b/src/py/binutils.rs index 4ee4a0e6..53bec172 100644 --- a/src/py/binutils.rs +++ b/src/py/binutils.rs @@ -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}; @@ -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) })?