Skip to content

Commit

Permalink
Merge branch 'feat/eip712-dynamic-parsing' of github.com:JeneaVrancea…
Browse files Browse the repository at this point in the history
…nu/web3swift into feat/eip712-dynamic-parsing

* 'feat/eip712-dynamic-parsing' of github.com:JeneaVranceanu/web3swift:
  chore: docs update
  chore: updated error message
  • Loading branch information
JeneaVranceanu committed Nov 7, 2023
2 parents e77af0a + 111d33e commit bd1544d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/web3swift/Utils/EIP/EIP712/EIP712Parser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit bd1544d

Please sign in to comment.