Skip to content

Commit

Permalink
fix: add if canimport
Browse files Browse the repository at this point in the history
add if canImport(curveSecp256k1)
  • Loading branch information
ieow committed May 20, 2024
1 parent e306d4d commit 31c3d91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Sources/MPCEthereumProvider/MPCEthereumProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@

import BigInt
import Foundation
#ifcanimport
import curveSecp256k1
import web3

#if canImport(curveSecp256k1)
import curveSecp256k1
#endif


public protocol EvmSigner {
func sign( message: Data ) -> Data
var publicKey : Data { get }
Expand Down
4 changes: 3 additions & 1 deletion Sources/Web3SwiftMpcProvider/EthereumTssAccount.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import BigInt
import Foundation
import curveSecp256k1
import tssClientSwift
import web3
#if canImport(curveSecp256k1)
import curveSecp256k1
#endif

enum CustomSigningError: Error {
case generalError(error: String = "")
Expand Down

0 comments on commit 31c3d91

Please sign in to comment.