You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwWeb3Error.processingError(desc:"EIP712. Attempting to encode type that doesn't exist in this payload. Given type: \(type). Available types: \(types.values).")
179
+
throwWeb3Error.processingError(desc:"EIP712Parser. Attempting to encode type that doesn't exist in this payload. Given type: \(type). Available types: \(types.values).")
180
180
}
181
181
returntryencodeType(type, typeData)
182
182
}
@@ -216,7 +216,7 @@ public struct EIP712TypedData {
216
216
varencValues:[Any]=[trytypeHash(type)]
217
217
218
218
guardlet typeData =types[type]else{
219
-
throwWeb3Error.processingError(desc:"EIP712. Attempting to encode data for type that doesn't exist in this payload. Given type: \(type). Available types: \(types.values).")
219
+
throwWeb3Error.processingError(desc:"EIP712Parser. Attempting to encode data for type that doesn't exist in this payload. Given type: \(type). Available types: \(types.values).")
220
220
}
221
221
222
222
func encodeField(_ field:EIP712TypeProperty,
@@ -225,19 +225,19 @@ public struct EIP712TypedData {
225
225
varencValues:[Any]=[]
226
226
if field.type =="string"{
227
227
guardlet value = value as?Stringelse{
228
-
throwWeb3Error.processingError(desc:"EIP712. Type metadata '\(field)' and actual value '\(String(describing: value))' type doesn't match. Cannot cast value to String.")
228
+
throwWeb3Error.processingError(desc:"EIP712Parser. Type metadata '\(field)' and actual value '\(String(describing: value))' type doesn't match. Cannot cast value to String.")
throwWeb3Error.processingError(desc:"EIP712. Type metadata '\(field)' and actual value '\(String(describing: value))' type doesn't match. Cannot cast value to Data.")
234
+
throwWeb3Error.processingError(desc:"EIP712Parser. Type metadata '\(field)' and actual value '\(String(describing: value))' type doesn't match. Cannot cast value to Data.")
235
235
}
236
236
encTypes.append(.bytes(length:32))
237
237
encValues.append(value.sha3(.keccak256))
238
238
}elseif field.isArray {
239
239
guardlet values = value as?[AnyObject]else{
240
-
throwWeb3Error.processingError(desc:"EIP712. Custom type metadata '\(field)' and actual value '\(String(describing: value))' type doesn't match. Cannot cast value to [AnyObject].")
240
+
throwWeb3Error.processingError(desc:"EIP712Parser. Custom type metadata '\(field)' and actual value '\(String(describing: value))' type doesn't match. Cannot cast value to [AnyObject].")
throwWeb3Error.processingError(desc:"EIP712. Failed to encode an array of custom type. Field: '\(field)'; value: '\(String(describing: value))'.")
253
+
throwWeb3Error.processingError(desc:"EIP712Parser. Failed to encode an array of custom type. Field: '\(field)'; value: '\(String(describing: value))'.")
254
254
}
255
255
256
256
encValues.append(encodedValue.sha3(.keccak256))
@@ -276,7 +276,7 @@ public struct EIP712TypedData {
0 commit comments