feat: add program to vote and memo instruction card (#15523)

This commit is contained in:
Josh 2021-02-24 13:01:10 -08:00 committed by GitHub
parent 976a64c25c
commit 7cb44b1095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import React from "react";
import { ParsedInstruction, SignatureResult } from "@solana/web3.js";
import { InstructionCard } from "./InstructionCard";
import { wrap } from "utils";
import { Address } from "components/common/Address";
export function MemoDetailsCard({
ix,
@ -26,6 +27,13 @@ export function MemoDetailsCard({
innerCards={innerCards}
childIndex={childIndex}
>
<tr>
<td>Program</td>
<td className="text-lg-right">
<Address pubkey={ix.programId} alignRight link />
</td>
</tr>
<tr>
<td>Data (UTF-8)</td>
<td className="text-lg-right">

View File

@ -27,6 +27,13 @@ export function VoteDetailsCard(props: {
innerCards={innerCards}
childIndex={childIndex}
>
<tr>
<td>Program</td>
<td className="text-lg-right">
<Address pubkey={ix.programId} alignRight link />
</td>
</tr>
<tr>
<td>Vote Account</td>
<td className="text-lg-right">