fix: convert string into list of bytes

This commit is contained in:
Roman 2025-01-17 15:04:02 +08:00
parent b424456225
commit 0eac80fc57
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75

View File

@ -4,7 +4,8 @@ from src.steps.common import StepsCommon
def prepare_dispersal_data(data): 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 return dispersal_data