From 9bbed04b67f1bfed6c3252705bbcd4a08801ab15 Mon Sep 17 00:00:00 2001 From: ngundotra Date: Sat, 6 Jan 2024 18:35:17 -0500 Subject: [PATCH] Arguments top border, align arguments input box --- app/api/program-interface/resolution.ts | 2 +- .../account/ProgramInterfaceCard.tsx | 45 +++++++++++-------- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/app/api/program-interface/resolution.ts b/app/api/program-interface/resolution.ts index 12165cf2..f34aadd0 100644 --- a/app/api/program-interface/resolution.ts +++ b/app/api/program-interface/resolution.ts @@ -40,7 +40,7 @@ export async function resolveRemainingAccounts( addressLookupTableAccounts: slut ? [lookupTable!] : undefined, instructions: PRE_INSTRUCTIONS.concat(instructions), payerKey: payer, - recentBlockhash: (await connection.getLatestBlockhash()).blockhash, + recentBlockhash: (await connection.getLatestBlockhashAndContext()).value.blockhash, }); const transaction = new anchor.web3.VersionedTransaction(message); diff --git a/app/components/account/ProgramInterfaceCard.tsx b/app/components/account/ProgramInterfaceCard.tsx index 6de6b182..ef81a1ba 100644 --- a/app/components/account/ProgramInterfaceCard.tsx +++ b/app/components/account/ProgramInterfaceCard.tsx @@ -426,9 +426,9 @@ function MsaInstructionCard({ {ix.args.length > 0 ? ( <> -
+
-
+

Arguments

@@ -449,23 +449,32 @@ function MsaInstructionCard({ {arg.name} {arg.type.toString()} - { - setInputArgumentValues({ - ...inputAccountValues, - [key]: e.target.value, - }); +
- + > + { + setInputArgumentValues({ + ...inputAccountValues, + [key]: e.target.value, + }); + }} + /> + +
);