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

Mintbase / mintbase-js / 8845566891

26 Apr 2024 08:42AM CUT coverage: 77.325%. First build
8845566891

Pull #504

github

tifrel
Lint & test
Pull Request #504: Fix v2 contract deployment

893 of 1346 branches covered (66.34%)

Branch coverage included in aggregate %.

6 of 7 new or added lines in 1 file covered. (85.71%)

1211 of 1375 relevant lines covered (88.07%)

13.74 hits per line

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

63.64
/packages/sdk/src/ftDepositStorage/ftDepositStorage.ts
1
import { GAS_CONSTANTS, FT_STORAGE_DEPOSIT } from '../constants';
3✔
2
import { ERROR_MESSAGES } from '../errorMessages';
3✔
3
import { NearContractCall, FT_METHOD_NAMES, FtDepositStorageArgs, FtDepositStorageArgsResponse } from '../types';
3✔
4

5

6
/**
7
 * Transfers one or more tokens to specified recipients.
8
 * @param transferArguments {@link TransferArgs}
9
 * @returns contract call to be passed to @mintbase-js/sdk execute method
10
 */
11
export const ftDepositStorage = ({
3✔
12
  ftContractAddress,
13
  accountId,
14
}: FtDepositStorageArgs): NearContractCall<FtDepositStorageArgsResponse> => {
15

16
  if (ftContractAddress === null) {
3!
17
    throw new Error(ERROR_MESSAGES.FT_CONTRACT_ADDRESS);
×
18
  }
19

20
  return {
3✔
21
    contractAddress: ftContractAddress,
22
    methodName: FT_METHOD_NAMES.STORAGE_DEPOSIT,
23
    args: accountId ? { account_id: accountId } : null,
2!
24
    deposit: FT_STORAGE_DEPOSIT,
25
    gas: GAS_CONSTANTS.DEFAULT_GAS,
26
  };
27
};
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