From 5116fe6a43f32f7db0d3bca0431dc03b722cca08 Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Thu, 5 Dec 2024 12:58:21 +0200 Subject: [PATCH] remove account from test --- multiversx_sdk/core/transaction_test.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/multiversx_sdk/core/transaction_test.py b/multiversx_sdk/core/transaction_test.py index b4b8e8c4..eb05e3b7 100644 --- a/multiversx_sdk/core/transaction_test.py +++ b/multiversx_sdk/core/transaction_test.py @@ -2,7 +2,6 @@ import pytest -from multiversx_sdk.accounts.account import Account from multiversx_sdk.core.address import Address from multiversx_sdk.core.constants import \ MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS @@ -383,7 +382,7 @@ def test_serialize_tx_with_relayed_v3(self): def test_relayed_v3(self): alice = Address.new_from_bech32("erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th") bob = Address.new_from_bech32("erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx") - carol = Account(self.carol.secret_key) + carol = Address(self.carol.public_key.get_bytes()) transaction = Transaction( nonce=90, @@ -399,5 +398,5 @@ def test_relayed_v3(self): ) assert not self.transaction_computer.is_relayed_v3_transaction(transaction) - transaction.relayer = carol.address + transaction.relayer = carol assert self.transaction_computer.is_relayed_v3_transaction(transaction)