Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Fix account invariant (#302)
Browse files Browse the repository at this point in the history
* fix account invariant

* fix max_fee
  • Loading branch information
martriay authored Nov 24, 2022
1 parent b81dce8 commit 98ce378
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/nile/core/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def __init__(
)
if output is not None:
address, index = output
self.address = address
self.address = normalize_number(address)
self.index = index

# we should replace this with static type checks
Expand Down
2 changes: 1 addition & 1 deletion src/nile/starknet_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def set_command_args(**kwargs):

if kwargs.get("max_fee"):
command_args.append("--max_fee")
command_args.extend(prepare_params(kwargs.get("max_fee")))
command_args.append(str(kwargs.get("max_fee")))

if kwargs.get("method"):
command_args.append("--function")
Expand Down
4 changes: 2 additions & 2 deletions tests/test_starknet_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def test__add_args(args, expected):
"args, expected",
[
(
{"address": ADDRESS, "inputs": INPUTS},
["--address", ADDRESS, "--inputs", "1", "2"],
{"address": ADDRESS, "inputs": INPUTS, "max_fee": "324652"},
["--address", ADDRESS, "--inputs", "1", "2", "--max_fee", "324652"],
),
(
{"inputs": INPUTS, "contract_name": CONTRACT_NAME},
Expand Down

0 comments on commit 98ce378

Please sign in to comment.