Skip to content

Commit

Permalink
fix(pytests): fix rpc_state_changes.py
Browse files Browse the repository at this point in the history
near#9658 stabilized a protocol feature
that restricts creating top level accounts unless you're the registrar,
and in this test we were trying to create one. change it to be a subaccount
of the tx signer
  • Loading branch information
marcelo-gonzalez committed Nov 17, 2023
1 parent 811635f commit 3f162bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytest/tests/sanity/rpc_state_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ def test_changes_with_new_account_with_access_key():
4. Observe the changes in the block where the receipt lands.
"""

base_account_id = nodes[0].signer_key.account_id
# re-use the key as a new account access key
new_key = Key(
account_id='rpc_key_value_changes_full_access',
account_id=f'rpc_key_value_changes.{base_account_id}',
pk=nodes[1].signer_key.pk,
sk=nodes[1].signer_key.sk,
)
Expand Down

0 comments on commit 3f162bd

Please sign in to comment.