From 0df52938b20a997fc879c721ef0448d6f407bcb0 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Sat, 9 May 2020 15:32:28 +0800 Subject: [PATCH] Add key index to tx instructions --- .../src/components/TransactionDetails.tsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/explorer/src/components/TransactionDetails.tsx b/explorer/src/components/TransactionDetails.tsx index 07110d55f1..f880a6b077 100644 --- a/explorer/src/components/TransactionDetails.tsx +++ b/explorer/src/components/TransactionDetails.tsx @@ -299,7 +299,7 @@ function InstructionsSection({ signature }: Props) { const props = { ix, result, index }; if (!ix.programId.equals(SystemProgram.programId)) { - return ; + return ; } let systemInstructionType; @@ -307,28 +307,28 @@ function InstructionsSection({ signature }: Props) { systemInstructionType = SystemInstruction.decodeInstructionType(ix); } catch (err) { console.error(err); - return ; + return ; } switch (systemInstructionType) { case "Create": - return ; + return ; case "Assign": - return ; + return ; case "Transfer": - return ; + return ; case "CreateWithSeed": - return ; + return ; case "AdvanceNonceAccount": - return ; + return ; case "WithdrawNonceAccount": - return ; + return ; case "AuthorizeNonceAccount": - return ; + return ; case "InitializeNonceAccount": - return ; + return ; default: - return ; + return ; } });