diff --git a/CircleModularWalletsCore/Sources/Helpers/Utils/Utils.swift b/CircleModularWalletsCore/Sources/Helpers/Utils/Utils.swift index 8740478..95c867d 100644 --- a/CircleModularWalletsCore/Sources/Helpers/Utils/Utils.swift +++ b/CircleModularWalletsCore/Sources/Helpers/Utils/Utils.swift @@ -70,7 +70,7 @@ public struct Utils { abiJson: String, args: [Any]) -> String? { guard let contract = try? EthereumContract(abiJson), - let callData = contract.method(functionName, parameters: args, extraData: nil) else { + let callData = try? contract.method(functionName, parameters: args, extraData: nil) else { logger.utils.notice("This abiJson cannot be parsed or the given contract method cannot be called with the given parameters") return nil } @@ -94,7 +94,7 @@ public struct Utils { signature: String, webauthn: WebAuthnData) throws -> Bool { do { - let rawClientData = webauthn.clientDataJSON.bytes + let rawClientData = try webauthn.clientDataJSON.bytes let clientData = try JSONDecoder().decode(CollectedClientData.self, from: Data(rawClientData)) let rawAuthenticatorData = try HexUtils.hexToBytes(hex: webauthn.authenticatorData) let authenticatorData = try AuthenticatorData(bytes: rawAuthenticatorData) diff --git a/Package.swift b/Package.swift index 23634b6..fae1b8a 100644 --- a/Package.swift +++ b/Package.swift @@ -31,7 +31,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/valpackett/SwiftCBOR.git", .upToNextMinor(from: "0.4.7")), - .package(url: "https://github.com/web3swift-team/web3swift.git", .upToNextMinor(from: "3.2.2")) + .package(url: "https://github.com/superbigroach/web3swift.git", .upToNextMajor(from: "3.2.2")) ], targets: [ .target(