Skip to content

Commit

Permalink
style(swift): use CodingKeys name for coding keys in Key enum
Browse files Browse the repository at this point in the history
  • Loading branch information
mehcode committed Jun 14, 2022
1 parent 23c0f61 commit caf7afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/swift/Sources/Hedera/Key.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ public enum Key {
}

extension Key: Encodable {
private enum KeyKeys: CodingKey {
private enum CodingKeys: CodingKey {
case single
case contractId
case delegatableContractId
}

public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: KeyKeys.self)
var container = encoder.container(keyedBy: CodingKeys.self)

switch self {
case .single(let publicKey):
Expand Down

0 comments on commit caf7afc

Please sign in to comment.