Skip to content

Commit

Permalink
Merge branch 'argentlabs:develop' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
varunlohade authored Dec 1, 2023
2 parents e01c1c2 + 942d18d commit 06b32cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 06b32cf

Please sign in to comment.