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 = []