We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2161f9 commit 2f6d8dcCopy full SHA for 2f6d8dc
src/Solnet.Programs/TokenProgramData.cs
@@ -302,7 +302,10 @@ internal static void DecodeSetAuthorityData(DecodedInstruction decodedInstructio
302
decodedInstruction.Values.Add("Current Authority", keys[keyIndices[1]]);
303
decodedInstruction.Values.Add("Authority Type", Enum.Parse(typeof(AuthorityType), data.GetU8(1).ToString()));
304
decodedInstruction.Values.Add("New Authority Option", data.GetU8(2));
305
- decodedInstruction.Values.Add("New Authority", data.GetPubKey(3));
+ if (data.Length >= 34)
306
+ {
307
+ decodedInstruction.Values.Add("New Authority", data.GetPubKey(3));
308
+ }
309
for (int i = 2; i < keyIndices.Length; i++)
310
{
311
decodedInstruction.Values.Add($"Signer {i - 1}", keys[keyIndices[i]]);
0 commit comments