From 61177f55928aa5b1987b42e8d8b93f7293d9a62a Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Wed, 8 Nov 2023 13:40:56 +0200 Subject: [PATCH] fix transaction serialization when cosignin with tcs --- multiversx_sdk_cli/cosign_transaction.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/multiversx_sdk_cli/cosign_transaction.py b/multiversx_sdk_cli/cosign_transaction.py index 26aada47..30a3ec79 100644 --- a/multiversx_sdk_cli/cosign_transaction.py +++ b/multiversx_sdk_cli/cosign_transaction.py @@ -1,6 +1,8 @@ from typing import Any, Dict import requests +from multiversx_sdk_network_providers.transactions import \ + transaction_to_dictionary from multiversx_sdk_cli.errors import GuardianServiceError from multiversx_sdk_cli.interfaces import ITransaction @@ -9,7 +11,7 @@ def cosign_transaction(transaction: ITransaction, service_url: str, guardian_code: str) -> ITransaction: payload = { "code": f"{guardian_code}", - "transaction": transaction.__dict__ + "transaction": transaction_to_dictionary(transaction) } url = f"{service_url}/sign-transaction"