Skip to content

Commit

Permalink
ready
Browse files Browse the repository at this point in the history
  • Loading branch information
noahlitvin committed Feb 27, 2025
1 parent f6ffc9c commit 5760b4b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
25 changes: 7 additions & 18 deletions packages/website/src/features/Deploy/SimulateTransactionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { SafeDefinition } from '@/helpers/store';
import { SafeTransaction } from '@/types/SafeTransaction';
import { Button } from '@/components/ui/button';
import Image from 'next/image';

interface Props {
safe: SafeDefinition;
Expand Down Expand Up @@ -48,21 +46,12 @@ export function SimulateTransactionButton({
const searchParams = new URLSearchParams(queryParams).toString();

return (
<Button variant="secondary" asChild>
<a
href={`https://dashboard.tenderly.co/simulator/new?${searchParams}`}
target="_blank"
rel="noopener noreferrer"
>
<Image
width={12}
height={12}
src="/images/tenderly.svg"
alt="Safe"
className="object-cover"
/>
Simulate on Tenderly
</a>
</Button>
<a
href={`https://dashboard.tenderly.co/simulator/new?${searchParams}`}
target="_blank"
rel="noopener noreferrer"
>
simulate the transaction using Tenderly
</a>
);
}
25 changes: 19 additions & 6 deletions packages/website/src/features/Deploy/TransactionDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,25 @@ function TransactionDetailsPage() {
)}
</div>
)}
<SimulateTransactionButton
signer={signers[0]}
safe={safe}
safeTxn={safeTxn}
execTransactionData={stager.execTransactionData}
/>
<p>
Confirm you’re accessing the page via the{' '}
<code>usecannon.com</code> domain,{' '}
<SimulateTransactionButton
signer={signers[0]}
safe={safe}
safeTxn={safeTxn}
execTransactionData={stager.execTransactionData}
/>
, and always verify the transaction data displayed in
your wallet with{' '}
<a
href="https://github.com/usecannon/safe-tx-hashes-util"
target="_blank"
>
this tool
</a>
.
</p>
</CardContent>
</Card>
)}
Expand Down

0 comments on commit 5760b4b

Please sign in to comment.