From 68d845700ebd56403fb09a6c88c429383cb5b533 Mon Sep 17 00:00:00 2001 From: Jenea Vranceanu <36865532+JeneaVranceanu@users.noreply.github.com> Date: Sun, 5 Nov 2023 01:23:33 +0200 Subject: [PATCH 1/2] chore: updated error message --- Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift b/Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift index 42934c140..68d9b3a95 100644 --- a/Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift +++ b/Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift @@ -90,7 +90,7 @@ public class EIP712Parser { static func toData(_ json: String) throws -> Data { guard let json = json.data(using: .utf8) else { - throw Web3Error.inputError(desc: "EIP712Parser. Failed to parse EIP712 payload. Given string is not valid UTF8 string. \(json)") + throw Web3Error.inputError(desc: "EIP712Parser. Failed to parse EIP712 payload. Given string is not valid UTF8 string.") } return json } From 111d33e62c461a30cbd08bcf0f54e9780a73320b Mon Sep 17 00:00:00 2001 From: Jenea Vranceanu <36865532+JeneaVranceanu@users.noreply.github.com> Date: Sun, 5 Nov 2023 01:26:58 +0200 Subject: [PATCH 2/2] chore: docs update --- Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift b/Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift index 68d9b3a95..2f7e77e6a 100644 --- a/Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift +++ b/Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift @@ -125,9 +125,9 @@ internal struct EIP712TypeArray: Codable { public struct EIP712TypeProperty: Codable { /// Property name. An arbitrary string. public let name: String - /// Property type. A type that's ABI encodable. + /// Property type. A type that's ABI encodable or a custom type from ``EIP712TypedData/types``. public let type: String - /// Strips brackets (e.g. [] - denoting an array) and other characters augmenting the type. + /// Stripped of brackets ([] - denoting an array). /// If ``type`` is an array of then ``coreType`` will return the type of the array. public let coreType: String