Skip to content

Commit

Permalink
Add address key type decode
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcmz committed Jun 22, 2023
1 parent c677bf3 commit 7b864b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/Decode/FlowArgument+Decode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ extension Flow.Argument: FlowCodable {
return result.decode(Bool.self)
case .string:
return result.decode(String.self)
case .address:
return result.decode(String.self)
case .int8:
return result.decode(Int8.self)
case .uint8:
Expand Down
2 changes: 1 addition & 1 deletion Sources/Models/FlowTransaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ extension Flow.TransactionSignature: Codable {
let keyIndex = try container.decode(String.self, forKey: .keyIndex)
self.keyIndex = Int(keyIndex) ?? -1
let signatureString = try container.decode(String.self, forKey: .signature)
signature = signatureString.hexValue.data
signature = Data(base64Encoded: signatureString) ?? signatureString.hexValue.data
signerIndex = -1
}
}

0 comments on commit 7b864b0

Please sign in to comment.