Skip to content

Commit 65134e5

Browse files
committed
Small changes
1 parent e42192b commit 65134e5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/cashscript/src/advanced/LibauthTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ export const getLibauthTemplates = (
534534
export const debugLibauthTemplate = (template: WalletTemplate, transaction: TransactionBuilder): DebugResults => {
535535
const allArtifacts = transaction.inputs
536536
.map(input => 'contract' in input.unlocker ? input.unlocker.contract : undefined)
537-
.filter((contract): contract is Contract => !!contract)
537+
.filter((contract): contract is Contract => Boolean(contract))
538538
.map(contract => contract.artifact);
539539

540540
return debugTemplate(template, allArtifacts);

packages/cashscript/test/e2e/P2PKH.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('P2PKH-no-tokens', () => {
9797

9898
// TODO: this fails on mocknet, because mocknet doesn't check inputs vs outputs,
9999
// we should add a sanity check in our own code
100-
itOrSkip(!!process.env.TESTS_USE_CHIPNET, 'should fail when not enough satoshis are provided in utxos', async () => {
100+
itOrSkip(Boolean(process.env.TESTS_USE_CHIPNET), 'should fail when not enough satoshis are provided in utxos', async () => {
101101
// given
102102
const to = p2pkhContract.address;
103103
const amount = 1000n;

packages/utils/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export function parseType(str: string): Type {
190190
}
191191

192192
export function isPrimitive(type: Type): type is PrimitiveType {
193-
return !!PrimitiveType[type.toString().toUpperCase() as keyof typeof PrimitiveType];
193+
return Boolean(PrimitiveType[type.toString().toUpperCase() as keyof typeof PrimitiveType]);
194194
}
195195

196196
export interface LocationI {

0 commit comments

Comments
 (0)