fix: remove old hotfix for web3 inner instructions (#15604)

This commit is contained in:
Josh 2021-03-01 13:44:43 -08:00 committed by GitHub
parent ccb604f8c3
commit d679eff3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 17 deletions

View File

@ -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) {