Skip to content

Commit a87863d

Browse files
committed
merge to 0.3.0
2 parents 027dfa5 + 864c51a commit a87863d

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

convex_api/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
class API:
5050

5151
def __init__(self, url: str):
52-
self._url = url
52+
self._url = str(url)
5353
self._registry = Registry(self)
5454

5555
def create_account(self, key_pair: KeyPair, sequence_retry_count: int = 20) -> Account:

convex_api/tool/command/account_name_register_command.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
class AccountNameRegisterArgs(BaseArgs):
2020
command: Literal['account']
2121
account_command: Literal['register']
22-
name_address: str | int
22+
name_address: Union[str, int]
2323
name: str
24-
address: str | int
24+
address: Union[str, int]
2525

2626

2727
class AccountNameRegisterCommand(CommandBase):

tests/intergration/tool/test_account_command.py

+13
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ def test_account_balance_command(convex_url: str, test_account: Account):
4444
args.account_command = 'balance'
4545
args.url = convex_url
4646
args.name_address = test_account.address
47+
args.keyfile = None
48+
args.keytext = None
49+
args.password = None
50+
args.keywords = None
4751

4852
command = AccountBalanceCommand()
4953
output = Output()
@@ -68,6 +72,10 @@ def test_account_info_command(convex_url: str, test_account: Account):
6872
args.account_command = 'info'
6973
args.url = convex_url
7074
args.name_address = test_account.address
75+
args.keyfile = None
76+
args.keytext = None
77+
args.password = None
78+
args.keywords = None
7179

7280
command = AccountInfoCommand()
7381
output = Output()
@@ -98,6 +106,11 @@ def test_account_name_resolve_command(convex_url: str, test_account: Account):
98106
args.account_command = 'resolve'
99107
args.url = convex_url
100108
args.name = test_account.name
109+
args.keyfile = None
110+
args.keytext = None
111+
args.password = None
112+
args.keywords = None
113+
101114

102115
command = AccountNameResolveCommand()
103116
output = Output()

tests/intergration/tool/test_query_command.py

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def test_query_command(convex_url: str):
1616
args.url = convex_url
1717
args.query = '(address *registry*)'
1818
args.name_address = None
19+
args.keyfile = None
20+
args.keytext = None
21+
args.password = None
22+
args.keywords = None
1923

2024
command = QueryCommand()
2125
output = Output()

0 commit comments

Comments
 (0)