mirror of https://github.com/nucypher/nucypher.git
Update eth_account Transaction API imports.
parent
e0887605e2
commit
1f7ee94489
|
@ -17,7 +17,7 @@
|
|||
|
||||
|
||||
import rlp
|
||||
from eth_account._utils.transactions import assert_valid_fields, Transaction
|
||||
from eth_account._utils.legacy_transactions import assert_valid_fields, Transaction
|
||||
from eth_utils.address import to_canonical_address
|
||||
from eth_utils.applicators import apply_key_map, apply_formatters_to_dict
|
||||
from eth_utils.conversions import to_int
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
|
||||
import pytest
|
||||
from eth_account._utils.transactions import Transaction
|
||||
from eth_account._utils.legacy_transactions import Transaction
|
||||
from eth_utils import to_checksum_address
|
||||
|
||||
from nucypher.blockchain.eth.signers.software import Web3Signer
|
||||
|
@ -76,7 +76,7 @@ def test_transacting_power_sign_transaction(testerchain):
|
|||
signed_transaction = power.sign_transaction(transaction_dict=transaction_dict)
|
||||
|
||||
# Demonstrate that the transaction is valid RLP encoded.
|
||||
from eth_account._utils.transactions import Transaction
|
||||
from eth_account._utils.legacy_transactions import Transaction
|
||||
restored_transaction = Transaction.from_bytes(serialized_bytes=signed_transaction)
|
||||
restored_dict = restored_transaction.as_dict()
|
||||
assert to_checksum_address(restored_dict['to']) == transaction_dict['to']
|
||||
|
|
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU Affero General Public License
|
|||
along with nucypher. If not, see <https://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from eth_account._utils.transactions import Transaction
|
||||
from eth_account._utils.legacy_transactions import Transaction
|
||||
from eth_utils import to_checksum_address
|
||||
|
||||
from nucypher.blockchain.eth.signers.software import Web3Signer
|
||||
|
|
|
@ -21,7 +21,7 @@ import shutil
|
|||
import pytest
|
||||
from cytoolz.dicttoolz import assoc
|
||||
from eth_account import Account
|
||||
from eth_account._utils.transactions import Transaction
|
||||
from eth_account._utils.legacy_transactions import Transaction
|
||||
from eth_utils.address import to_checksum_address
|
||||
from hexbytes.main import HexBytes
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
import pytest
|
||||
from eth_account import Account
|
||||
from eth_account._utils.transactions import Transaction
|
||||
from eth_account._utils.legacy_transactions import Transaction
|
||||
from eth_account.account import Account
|
||||
from eth_utils.address import to_checksum_address
|
||||
from hexbytes import HexBytes
|
||||
|
|
Loading…
Reference in New Issue