Skip to content

Commit

Permalink
fix(test): type validate
Browse files Browse the repository at this point in the history
  • Loading branch information
darwintree committed Sep 27, 2024
1 parent e9e7358 commit ecf1f00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/utils/test_transaction_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import pytest
from conflux_web3 import Web3
from conflux_web3._utils.transactions import fill_transaction_defaults
from cfx_address import Base32Address
from tests._test_helpers.type_check import TypeValidator

def test_fill_transaction_defaults(w3: Web3, address):
Expand All @@ -10,7 +11,7 @@ def test_fill_transaction_defaults(w3: Web3, address):
w3.cfx.default_account = address
# "from" field is required before using this util
unfilled_tx = {
"from": address,
"from": Base32Address(address),
"to": w3.account.create().address
}
filled_tx = fill_transaction_defaults(w3, unfilled_tx)
Expand Down

0 comments on commit ecf1f00

Please sign in to comment.