Skip to content

Commit

Permalink
Prettier fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
5eeman committed Dec 19, 2024
1 parent f4fbc6d commit 7f55cb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ios/CircomWitnesscalcProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Check failure on line 15 in ios/CircomWitnesscalcProxy.swift

View workflow job for this annotation

GitHub Actions / build-ios

cannot convert value of type 'Data' to expected argument type 'NSData'
graph: graph as Data,
graph: graph as Data

Check failure on line 16 in ios/CircomWitnesscalcProxy.swift

View workflow job for this annotation

GitHub Actions / build-ios

cannot convert value of type 'Data' to expected argument type 'NSData'
)

return witness.base64EncodedString as NSString
Expand Down
4 changes: 2 additions & 2 deletions src/NativeCircomWitnesscalc.ts
Original file line number Diff line number Diff line change
@@ -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: (
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const CircomWitnesscalc = CircomWitnesscalcModule
}
);

export function calculateWitness(inputs: string, graph: string): Promise<string> {
export function calculateWitness(
inputs: string,
graph: string
): Promise<string> {
return CircomWitnesscalc.calculateWitness(inputs, graph);
}

0 comments on commit 7f55cb7

Please sign in to comment.