Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: minor typo #345

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web3swift/src/Account/TypedData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion web3swift/src/SIWE/SiweMessage+String.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion web3swift/src/SIWE/SiweVerifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading