Skip to content

Commit

Permalink
[FIX] Ensure lower cased when reading from network/disk
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthMike committed Aug 23, 2019
1 parent f71bbf9 commit cd76a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3swift/src/Client/Models/EthereumAddress.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public struct EthereumAddress: Codable, Hashable {

public init(from decoder: Decoder) throws {
let container = try decoder.singleValueContainer()
self.value = try container.decode(String.self)
self.value = try container.decode(String.self).lowercased()
}

public func encode(to encoder: Encoder) throws {
Expand Down

0 comments on commit cd76a6d

Please sign in to comment.