From 0eac80fc579324bb13d9243b845df801ca565153 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 17 Jan 2025 15:04:02 +0800 Subject: [PATCH] fix: convert string into list of bytes --- src/steps/da.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/steps/da.py b/src/steps/da.py index a96ee21..33a2ab7 100644 --- a/src/steps/da.py +++ b/src/steps/da.py @@ -4,7 +4,8 @@ from src.steps.common import StepsCommon def prepare_dispersal_data(data): - dispersal_data = {"data": data, "metadata": {"app_id": 10, "index": 0}} + data_bytes = data.encode("utf-8") + dispersal_data = {"data": list(data_bytes), "metadata": {"app_id": 10, "index": 0}} return dispersal_data