From 8de65850a5841705d7f9365923e0f33400936a0a Mon Sep 17 00:00:00 2001 From: Evgeny Gusarov Date: Fri, 15 Sep 2023 18:56:38 +0300 Subject: [PATCH] Fix ApprovalRequest json --- src/validators/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validators/utils.py b/src/validators/utils.py index 6d16b23c..7b6e82e3 100644 --- a/src/validators/utils.py +++ b/src/validators/utils.py @@ -43,7 +43,7 @@ async def send_approval_requests(oracles: Oracles, request: ApprovalRequest) -> tuple[bytes, str]: """Requests approval from all oracles.""" - payload = dataclasses.asdict(request) + payload = request.as_json_dict() endpoints = list(zip(oracles.addresses, oracles.endpoints)) ipfs_hashes = []