Skip to content

Commit 5c617ff

Browse files
mainnet-patrkalis
authored andcommitted
Lint
1 parent 9bf5c3c commit 5c617ff

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/cashscript/src/debugging.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getBitauthUri } from './LibauthTemplate.js';
77
export type DebugResult = AuthenticationProgramStateCommon[];
88
export type DebugResults = Record<string, DebugResult>;
99

10-
const createVirualMachine = (vmTarget: AuthenticationVirtualMachineIdentifier) => {
10+
const createVirtualMachine = (vmTarget: AuthenticationVirtualMachineIdentifier): VM => {
1111
switch (vmTarget) {
1212
case 'BCH_2023_05':
1313
return createVirtualMachineBch2023();
@@ -16,7 +16,7 @@ const createVirualMachine = (vmTarget: AuthenticationVirtualMachineIdentifier) =
1616
case 'BCH_2026_05':
1717
return createVirtualMachineBch2026();
1818
case 'BCH_SPEC':
19-
return createVirtualMachineBchSpec();
19+
return createVirtualMachineBchSpec() as unknown as VM;
2020
default:
2121
throw new Error(`Debugging is not supported for the ${vmTarget} virtual machine.`);
2222
}
@@ -186,7 +186,7 @@ type CreateProgramResult = { vm: VM, program: Program };
186186
// internal util. instantiates the virtual machine and compiles the template into a program
187187
const createProgram = (template: WalletTemplate, unlockingScriptId: string, scenarioId: string): CreateProgramResult => {
188188
const configuration = walletTemplateToCompilerConfiguration(template);
189-
const vm = createVirualMachine(template.supported[0]);
189+
const vm = createVirtualMachine(template.supported[0]);
190190
const compiler = createCompiler(configuration);
191191

192192
if (!template.scripts[unlockingScriptId]) {

packages/cashscript/src/network/MockNetworkProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class MockNetworkProvider implements NetworkProvider {
2222

2323
constructor(options?: Partial<MockNetworkProviderOptions>) {
2424
this.options = { updateUtxoSet: true, ...options };
25-
this.vmTarget = this.options.vmTarget ?? "BCH_2025_05";
25+
this.vmTarget = this.options.vmTarget ?? 'BCH_2025_05';
2626
}
2727

2828
async getUtxos(address: string): Promise<Utxo[]> {

0 commit comments

Comments
 (0)