Skip to content

Commit

Permalink
content modifications for demo dapp
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmaayan committed Nov 16, 2023
1 parent d5e29cc commit 8014c82
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ export default function SingleSignerTransaction({
nonce: Math.random().toString(16),
};
const response = await signMessage(payload);
setSuccessAlertMessage(
JSON.stringify({ onSignMessageAndVerify: response })
);
setSuccessAlertMessage(JSON.stringify({ onSignMessage: response }));
};

const onSignAndSubmitTransaction = async () => {
Expand Down
10 changes: 10 additions & 0 deletions apps/nextjs-example/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import MultiAgentTransaction from "../components/transactionFlow/MultiAgent";
import Row from "../components/Row";
import Col from "../components/Col";
import { Network } from "@aptos-labs/ts-sdk";
import { Typography } from "antd";

const { Link } = Typography;

const WalletButtons = dynamic(() => import("../components/WalletButtons"), {
suspense: false,
Expand Down Expand Up @@ -44,6 +47,13 @@ export default function App() {
<h1 className="flex justify-center mt-2 mb-4 text-4xl font-extrabold tracking-tight leading-none text-black">
Aptos Wallet Adapter Tester ({network?.name ?? ""})
</h1>
<Link
href="https://github.com/aptos-labs/aptos-wallet-adapter/tree/main/apps/nextjs-example"
target="_blank"
className="flex justify-center tracking-tight leading-none text-black"
>
Demo app source code
</Link>
<table className="table-auto w-full border-separate border-spacing-y-8 shadow-lg bg-white border-separate">
<tbody>
<WalletSelect />
Expand Down

0 comments on commit 8014c82

Please sign in to comment.