mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-02 13:13:08 +00:00
fix: remove hardcoded values from disperse_dat
This commit is contained in:
parent
53bb7906af
commit
a56dbfc34b
@ -5,7 +5,7 @@ from src.steps.common import StepsCommon
|
||||
|
||||
def prepare_dispersal_request(data, app_id, index):
|
||||
data_bytes = data.encode("utf-8")
|
||||
dispersal_data = {"data": list(data_bytes), "metadata": {"app_id": [1] + [0] * 31, "index": [0] * 8}}
|
||||
dispersal_data = {"data": list(data_bytes), "metadata": {"app_id": app_id, "index": index}}
|
||||
return dispersal_data
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ class StepsDataAvailability(StepsCommon):
|
||||
|
||||
@allure.step
|
||||
def disperse_data(self, data, app_id, index):
|
||||
request = prepare_dispersal_request(data)
|
||||
request = prepare_dispersal_request(data, app_id, index)
|
||||
try:
|
||||
self.node3.send_dispersal_request(request)
|
||||
except Exception as ex:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user