Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update psbt warning copy #4847

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading