From 5d83a11d3e12908632366ea2ec80a49b4b0f69a2 Mon Sep 17 00:00:00 2001 From: vuittont60 <81072379+vuittont60@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:39:22 +0800 Subject: [PATCH] Fix: minor typo --- web3swift/src/Account/TypedData.swift | 4 ++-- web3swift/src/SIWE/SiweMessage+String.swift | 2 +- web3swift/src/SIWE/SiweVerifier.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web3swift/src/Account/TypedData.swift b/web3swift/src/Account/TypedData.swift index 4324bdba..cdc8d480 100644 --- a/web3swift/src/Account/TypedData.swift +++ b/web3swift/src/Account/TypedData.swift @@ -89,7 +89,7 @@ extension TypedData { let recursiveEncoded: [UInt8] = try valueTypes.flatMap { variable -> [UInt8] in - // Decomposit the type if it is array type + // Decomposite the type if it is array type let components = variable.type.components(separatedBy: CharacterSet(charactersIn: "[]")) let parsedType = components[0] @@ -128,7 +128,7 @@ extension TypedData { } private func getParsedType(primaryType: String) -> String { - // Decomposit the type if it is an array type + // Decomposite the type if it is an array type let components = primaryType.components(separatedBy: CharacterSet(charactersIn: "[]")) let parsedType = components[0] diff --git a/web3swift/src/SIWE/SiweMessage+String.swift b/web3swift/src/SIWE/SiweMessage+String.swift index 8de8c5d9..9ec51146 100644 --- a/web3swift/src/SIWE/SiweMessage+String.swift +++ b/web3swift/src/SIWE/SiweMessage+String.swift @@ -82,7 +82,7 @@ extension SiweMessage: CustomStringConvertible { /// - https://example.com/my-web2-claim.json /// ``` /// - Parameter description: the SIWE string message following EIP-4361 standard. - /// - Throws: `SiweMessage.RegExError` if an error occured while parsing the string; + /// - Throws: `SiweMessage.RegExError` if an error occurred while parsing the string; /// `SiweMessage.ValidationError` in case regex parsing was successful but data in the message was invalid; /// might throw `DecodingError` since we use `Decodable` to transform parsed values into `SiweMessage`. public init(_ description: String) throws { diff --git a/web3swift/src/SIWE/SiweVerifier.swift b/web3swift/src/SIWE/SiweVerifier.swift index 8c0705f0..32e90fc3 100644 --- a/web3swift/src/SIWE/SiweVerifier.swift +++ b/web3swift/src/SIWE/SiweVerifier.swift @@ -8,7 +8,7 @@ import Foundation /// An object which will verify if a given `SiweMessage` and signature match with the EVM address provided public class SiweVerifier { - /// Errors thrown when verifing a given message agains a signature + /// Errors thrown when verifing a given message against a signature public enum Error: Swift.Error { /// The provided message is from a different network than the client's. case differentNetwork