From 3f162bde73d75e8924e243d71a91e49d976825a1 Mon Sep 17 00:00:00 2001 From: Marcelo Diop-Gonzalez Date: Thu, 16 Nov 2023 22:57:56 -0500 Subject: [PATCH] fix(pytests): fix rpc_state_changes.py https://github.com/near/nearcore/pull/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 --- pytest/tests/sanity/rpc_state_changes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pytest/tests/sanity/rpc_state_changes.py b/pytest/tests/sanity/rpc_state_changes.py index bf20b2be5a5..009bc9d08f7 100755 --- a/pytest/tests/sanity/rpc_state_changes.py +++ b/pytest/tests/sanity/rpc_state_changes.py @@ -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, )