From 7f55cb7db121452dccb858b828e3c685157d1692 Mon Sep 17 00:00:00 2001 From: Yaroslav Moria <5eeman@users.noreply.github.com> Date: Thu, 19 Dec 2024 18:31:34 +0100 Subject: [PATCH] Prettier fixes. --- ios/CircomWitnesscalcProxy.swift | 4 ++-- src/NativeCircomWitnesscalc.ts | 4 ++-- src/index.ts | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ios/CircomWitnesscalcProxy.swift b/ios/CircomWitnesscalcProxy.swift index 369e6ad..559f584 100644 --- a/ios/CircomWitnesscalcProxy.swift +++ b/ios/CircomWitnesscalcProxy.swift @@ -8,12 +8,12 @@ public class CircomWitnesscalcProxy : NSObject { @objc public static func calculateWitness( inputs: NSData, - graph: NSData, + graph: NSData ) throws -> NSString { do { let witness = try calculateWitness( inputs: inputs as Data, - graph: graph as Data, + graph: graph as Data ) return witness.base64EncodedString as NSString diff --git a/src/NativeCircomWitnesscalc.ts b/src/NativeCircomWitnesscalc.ts index 64a08e5..58bf0df 100644 --- a/src/NativeCircomWitnesscalc.ts +++ b/src/NativeCircomWitnesscalc.ts @@ -1,5 +1,5 @@ -import type { TurboModule } from "react-native"; -import { TurboModuleRegistry } from "react-native"; +import type { TurboModule } from 'react-native'; +import { TurboModuleRegistry } from 'react-native'; export interface Spec extends TurboModule { groth16Prove: ( diff --git a/src/index.ts b/src/index.ts index f715cc0..1f34fbf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,6 +24,9 @@ const CircomWitnesscalc = CircomWitnesscalcModule } ); -export function calculateWitness(inputs: string, graph: string): Promise { +export function calculateWitness( + inputs: string, + graph: string +): Promise { return CircomWitnesscalc.calculateWitness(inputs, graph); }