Skip to content

Commit bd1544d

Browse files
Merge branch 'feat/eip712-dynamic-parsing' of github.com:JeneaVranceanu/web3swift into feat/eip712-dynamic-parsing
* 'feat/eip712-dynamic-parsing' of github.com:JeneaVranceanu/web3swift: chore: docs update chore: updated error message
2 parents e77af0a + 111d33e commit bd1544d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class EIP712Parser {
9090

9191
static func toData(_ json: String) throws -> Data {
9292
guard let json = json.data(using: .utf8) else {
93-
throw Web3Error.inputError(desc: "EIP712Parser. Failed to parse EIP712 payload. Given string is not valid UTF8 string. \(json)")
93+
throw Web3Error.inputError(desc: "EIP712Parser. Failed to parse EIP712 payload. Given string is not valid UTF8 string.")
9494
}
9595
return json
9696
}
@@ -125,9 +125,9 @@ internal struct EIP712TypeArray: Codable {
125125
public struct EIP712TypeProperty: Codable {
126126
/// Property name. An arbitrary string.
127127
public let name: String
128-
/// Property type. A type that's ABI encodable.
128+
/// Property type. A type that's ABI encodable or a custom type from ``EIP712TypedData/types``.
129129
public let type: String
130-
/// Strips brackets (e.g. [] - denoting an array) and other characters augmenting the type.
130+
/// Stripped of brackets ([] - denoting an array).
131131
/// If ``type`` is an array of then ``coreType`` will return the type of the array.
132132
public let coreType: String
133133

0 commit comments

Comments
 (0)