Skip to content

Commit

Permalink
feat: hints for send tez, Originate, Contract Call
Browse files Browse the repository at this point in the history
  • Loading branch information
dianasavvatina committed Jan 28, 2025
1 parent 431565b commit 2e75794
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("<OriginationOperationSignPage />", () => {

expect(screen.getByTestId("sign-page-header")).toHaveTextContent("Origination Request");
expect(screen.getByTestId("app-name")).toHaveTextContent("mockDappName");
expect(screen.queryByTestId("hints-accordion")).not.toBeInTheDocument();
expect(screen.getByTestId("hints-accordion")).toBeInTheDocument();
});

it("passes correct payload to sign handler", async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ describe("<useHandleBeaconMessage />", () => {
);
expect(screen.getByTestId("sign-page-header")).toHaveTextContent("Send Request");
expect(screen.getByTestId("app-name")).toHaveTextContent("mockDappName");
expect(screen.queryByTestId("hints-accordion")).not.toBeInTheDocument();
expect(screen.getByTestId("hints-accordion")).toBeInTheDocument();

expect(mockToast).not.toHaveBeenCalled();
});
Expand Down
6 changes: 4 additions & 2 deletions packages/core/src/Hints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ type HintData = {
header?: string;
description?: string;
};
const basicOperationHeader = undefined;
const basicOperationDescription = undefined;
const basicOperationHeader =
"A confirmation typically takes 1 block (8 seconds), and the transaction is considered final and irreversible after 2 blocks (16 seconds).";
const basicOperationDescription =
"A confirmation means the block has been validated by the network, though the operation could still be reversed in rare cases due to chain reorganizations. Finality refers to the point where the operation is irreversible.";

export const Hints: Record<SignPage, HintData> = {
TezSignPage: {
Expand Down

0 comments on commit 2e75794

Please sign in to comment.