Skip to content

Commit

Permalink
fix transaction serialization when cosignin with tcs
Browse files Browse the repository at this point in the history
popenta committed Nov 8, 2023
1 parent 3c6e850 commit 61177f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion multiversx_sdk_cli/cosign_transaction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from typing import Any, Dict

import requests
from multiversx_sdk_network_providers.transactions import \

Check failure on line 4 in multiversx_sdk_cli/cosign_transaction.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 Skipping analyzing "multiversx_sdk_network_providers.transactions": module is installed, but missing library stubs or py.typed marker [import-untyped] Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/cosign_transaction.py:4:1: error: Skipping analyzing "multiversx_sdk_network_providers.transactions": module is installed, but missing library stubs or py.typed marker [import-untyped]
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"

0 comments on commit 61177f5

Please sign in to comment.