Skip to content

Commit 0b0b3fa

Browse files
chore: error message fix
1 parent cfd8ee9 commit 0b0b3fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public struct EIP712TypedData {
176176

177177
public func encodeType(_ type: String) throws -> String {
178178
guard let typeData = types[type] else {
179-
throw Web3Error.processingError(desc: "EIP712Parser. Attempting to encode type that doesn't exist in this payload. Given type: \(type). Available types: \(types.values).")
179+
throw Web3Error.processingError(desc: "EIP712Parser. Attempting to encode type that doesn't exist in this payload. Given type: \(type). Available types: \(types.keys).")
180180
}
181181
return try encodeType(type, typeData)
182182
}
@@ -216,7 +216,7 @@ public struct EIP712TypedData {
216216
var encValues: [Any] = [try typeHash(type)]
217217

218218
guard let typeData = types[type] else {
219-
throw Web3Error.processingError(desc: "EIP712Parser. Attempting to encode data for type that doesn't exist in this payload. Given type: \(type). Available types: \(types.values).")
219+
throw Web3Error.processingError(desc: "EIP712Parser. Attempting to encode data for type that doesn't exist in this payload. Given type: \(type). Available types: \(types.keys).")
220220
}
221221

222222
func encodeField(_ field: EIP712TypeProperty,

0 commit comments

Comments
 (0)