diff --git a/src/components/instructions/SystemInstruction.js b/src/components/instructions/SystemInstruction.js index 86cfd48..eb7815e 100644 --- a/src/components/instructions/SystemInstruction.js +++ b/src/components/instructions/SystemInstruction.js @@ -3,7 +3,8 @@ import Typography from '@material-ui/core/Typography'; import LabelValue from './LabelValue'; const TYPE_LABELS = { - create: 'Create account', + systemCreate: 'Create account', + systemTransfer: 'Transfer SOL', }; const DATA_LABELS = { @@ -16,6 +17,7 @@ const DATA_LABELS = { newAuthorizedPubkey: { label: 'New authorized', address: true }, newAccountPubkey: { label: 'New account', address: true }, amount: { label: 'Amount', address: false }, + lamports: { label: 'Lamports', address: false }, }; export default function SystemInstruction({ instruction, onOpenAddress }) { diff --git a/src/pages/PopupPage.js b/src/pages/PopupPage.js index a319fe0..570826d 100644 --- a/src/pages/PopupPage.js +++ b/src/pages/PopupPage.js @@ -235,7 +235,8 @@ function ApproveSignatureForm({ origin, message, onApprove, onReject }) { onOpenAddress={onOpenAddress} /> ); - case 'create': + case 'systemCreate': + case 'systemTransfer': return ( { } return { - type: type.charAt(0).toLowerCase() + type.slice(1), + type: 'system' + type, data: decoded, }; };