• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cartesi / rollups-explorer / 8680620944

14 Apr 2024 05:19PM CUT coverage: 87.79% (-7.8%) from 95.576%
8680620944

Pull #143

github

brunomenezes
feat: Export and using ERC-1155 form types and components.
Pull Request #143: Feature: ERC-1155 Transfers

499 of 600 branches covered (83.17%)

Branch coverage included in aggregate %.

306 of 993 new or added lines in 10 files covered. (30.82%)

1 existing line in 1 file now uncovered.

6756 of 7664 relevant lines covered (88.15%)

18.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

27.27
/packages/ui/src/TransactionState.ts
1
import {
1✔
2
    TransactionStageStatus,
1✔
3
    TransactionWaitStatus,
1✔
4
} from "./TransactionStatus";
1✔
5

1✔
6
export const transactionState = (
1✔
NEW
7
    prepare: TransactionWaitStatus,
×
NEW
8
    execute: TransactionStageStatus,
×
NEW
9
    wait: TransactionWaitStatus,
×
NEW
10
    disableOnSuccess: boolean = true,
×
NEW
11
) => {
×
NEW
12
    const loading =
×
NEW
13
        prepare.fetchStatus === "fetching" ||
×
NEW
14
        execute.status === "pending" ||
×
NEW
15
        wait.fetchStatus === "fetching";
×
NEW
16

×
NEW
17
    const disabled =
×
NEW
18
        prepare.error !== null ||
×
NEW
19
        (disableOnSuccess && wait.status === "success");
×
NEW
20

×
NEW
21
    return { loading, disabled };
×
NEW
22
};
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc