Skip to content

Commit 31c5fec

Browse files
authored
Removed cheatcode_is_account call for authority (#93)
As explained by @JuanCoRo in #92 an authority is anything that can sign. `test_process_set_authority_account` updates the authority however calls `cheatcode_is_account` unnecessarily on the new authority. This PR removes that cheatcode call.
1 parent b453429 commit 31c5fec

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

p-token/src/entrypoint-runtime-verification.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3013,7 +3013,6 @@ fn test_process_set_authority_account(
30133013
use pinocchio_token_interface::state::account_state;
30143014

30153015
cheatcode_is_account(&accounts[0]); // Assume Account
3016-
cheatcode_is_account(&accounts[1]); // Authority
30173016

30183017
//-Initial State-----------------------------------------------------------
30193018
let src_initialised = get_account(&accounts[0]).is_initialized();

0 commit comments

Comments
 (0)