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

Mintbase / mintbase-js / 6881637682

15 Nov 2023 06:51PM CUT coverage: 77.81%. First build
6881637682

Pull #429

github

rubenmarcus
readme
Pull Request #429: fixes near wallet selector issues

632 of 958 branches covered (0.0%)

Branch coverage included in aggregate %.

31 of 76 new or added lines in 2 files covered. (40.79%)

988 of 1124 relevant lines covered (87.9%)

4.24 hits per line

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

69.23
/packages/sdk/src/removeMinter/removeMinter.ts
1
import { mbjs } from '../config/config';
1✔
2
import { GAS, ONE_YOCTO } from '../constants';
1✔
3
import { ERROR_MESSAGES } from '../errorMessages';
1✔
4
import { NearContractCall, RemoveMinterArgs, TOKEN_METHOD_NAMES } from '../types';
1✔
5

6

7
/**
8
 * Remove minting access of a provided id for a contract you own.
9
 * @param removeMinterArgs {@link RemoveMinterArgs}
10
 * @returns contract call to be passed to @mintbase-js/sdk execute method
11
 */     
12
export const removeMinter = (
1✔
13
  args: RemoveMinterArgs,
14
): NearContractCall<{account_id: string}> => {
15
  const { minterId, contractAddress = mbjs.keys.contractAddress } = args;
1!
16

17
  if (contractAddress == null) {
1!
18
    throw new Error(ERROR_MESSAGES.CONTRACT_ADDRESS);
×
19
  }
20
  
21
  return {
1✔
22
    contractAddress: contractAddress || mbjs.keys.contractAddress,
1!
23
    args: {
24
      account_id: minterId,
25
    },
26
    methodName: TOKEN_METHOD_NAMES.REMOVE_MINTER,
27
    gas: GAS,
28
    deposit: ONE_YOCTO,
29
  };
30
};
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