fix compiler warning - deprecated method

This commit is contained in:
Michael Kirk 2019-05-22 10:51:09 -04:00
parent 56f28fc3a6
commit 10ac3abafd
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ import Foundation
@objc public var serialized: Data {
let typeBytes = [ECPublicKey.keyTypeDJB]
let typeData = Data(bytes: typeBytes)
let typeData = Data(typeBytes)
return NSData.join([typeData, keyData])
}

View File

@ -86,7 +86,7 @@ import Foundation
@objc public func serialized() throws -> Data {
let versionByte: UInt8 = UInt8((self.cipherTextVersion << 4 | self.cipherTextVersion) & 0xFF)
let versionBytes = [versionByte]
let versionData = Data(bytes: versionBytes)
let versionData = Data(versionBytes)
let messageData = try toProto().serializedData()
return NSData.join([versionData, messageData])