diff --git a/tests/test_msg_solana_signtx.py b/tests/test_msg_solana_signtx.py index 9e3c391a..0add48b3 100644 --- a/tests/test_msg_solana_signtx.py +++ b/tests/test_msg_solana_signtx.py @@ -356,56 +356,82 @@ def test_solana_sign_set_authority_requires_advanced_mode(self): def test_solana_sign_stake_authorize_clearsigns(self): """StakeAuthorize clear-signs, showing the role (staker/withdrawer) and - the new authority.""" + the new authority. Canonical account layout: [0]=stake account, + [1]=Clock sysvar, [2]=[SIGNER] current authority -- the Clock sysvar + must be present so the signer lands at the real index 2, not 1.""" self.requires_fullFeature() self.setup_mnemonic_allallall() from_pubkey = self._get_from_pubkey() + clock_sysvar = b'\xC1' * 32 current_auth = b'\x77' * 32 new_auth = b'\x88' * 32 # Authorize (type=1 LE u32) + new authority(32) + StakeAuthorize role (0=staker) instr_data = struct.pack('