From d679eff3fa8aec67edcc98f36670f8cc3c51a06a Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 1 Mar 2021 13:44:43 -0800 Subject: [PATCH] fix: remove old hotfix for web3 inner instructions (#15604) --- .../transaction/InstructionsSection.tsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/explorer/src/components/transaction/InstructionsSection.tsx b/explorer/src/components/transaction/InstructionsSection.tsx index 74757b95d6..6680f53622 100644 --- a/explorer/src/components/transaction/InstructionsSection.tsx +++ b/explorer/src/components/transaction/InstructionsSection.tsx @@ -178,23 +178,6 @@ function renderInstructionCard({ } } - // TODO: There is a bug in web3, where inner instructions - // aren't getting coerced. This is a temporary fix. - - if (typeof ix.programId === "string") { - ix.programId = new PublicKey(ix.programId); - } - - ix.accounts = ix.accounts.map((account) => { - if (typeof account === "string") { - return new PublicKey(account); - } - - return account; - }); - - // TODO: End hotfix - const transactionIx = intoTransactionInstruction(tx, ix); if (!transactionIx) {