Skip to content

Commit

Permalink
fix: update psbt warning copy
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Jan 24, 2024
1 parent b05f731 commit 988e23f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { WarningLabel } from '@app/components/warning-label';

export function PsbtRequestSighashWarningLabel() {
interface PsbtRequestSighashWarningLabelProps {
origin: string;
}
export function PsbtRequestSighashWarningLabel({ origin }: PsbtRequestSighashWarningLabelProps) {
return (
<WarningLabel title="Be careful with this transaction" width="100%">
The details you see here are not guaranteed. Be sure to fully trust your counterparty, who can
later modify this transaction to send or receive other assets from your account, and possibly
even drain it.
The details of this transaction are not guaranteed and could be modified later. Continue only
if you trust {origin}
</WarningLabel>
);
}
2 changes: 1 addition & 1 deletion src/app/features/psbt-signer/psbt-signer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function PsbtSigner(props: PsbtSignerProps) {
<PsbtSignerLayout>
<PsbtRequestHeader name={name} origin={origin} />
<PsbtRequestDetailsLayout>
{isPsbtMutable ? <PsbtRequestSighashWarningLabel /> : null}
{isPsbtMutable ? <PsbtRequestSighashWarningLabel origin={origin} /> : null}
<PsbtRequestDetailsHeader />
<PsbtInputsOutputsTotals />
<PsbtInputsAndOutputs />
Expand Down

0 comments on commit 988e23f

Please sign in to comment.