diff --git a/Package.swift b/Package.swift index defbcc9..096d291 100644 --- a/Package.swift +++ b/Package.swift @@ -9,8 +9,14 @@ let package = Package( .library(name: "VIZ", targets: ["VIZ"]), ], dependencies: [ - .package(url: "https://github.com/Flight-School/AnyCodable.git", .revision("396ccc3dba5bdee04c1e742e7fab40582861401e")), - .package(url: "https://github.com/lukaskubanek/OrderedDictionary.git", .branch("master")), + .package( + url: "https://github.com/Flight-School/AnyCodable.git", + from: "0.6.0" + ), + .package( + url: "https://github.com/lukaskubanek/OrderedDictionary.git", + from: "4.0.0" + ), ], targets: [ .target( diff --git a/Tests/UnitTests/VIZURL.swift b/Tests/UnitTests/VIZURL.swift index 71ad376..a58fd47 100644 --- a/Tests/UnitTests/VIZURL.swift +++ b/Tests/UnitTests/VIZURL.swift @@ -9,8 +9,6 @@ fileprivate let sig = Signature( class VIZURLTest: XCTestCase { func testEncodeDecode() { let url = VIZURL(operation: Operation.Vote(voter: "foo", author: "bar", permlink: "baz")) - XCTAssertEqual(url?.url?.absoluteString, "viz://sign/op/WyJ2b3RlIix7InZvdGVyIjoiZm9vIiwiYXV0aG9yIjoiYmFyIiwicGVybWxpbmsiOiJiYXoiLCJ3ZWlnaHQiOjEwMDAwfV0.") -// XCTAssertEqual(url, VIZURL(string: "viz://sign/op/WyJ2b3RlIix7InZvdGVyIjoiZm9vIiwiYXV0aG9yIjoiYmFyIiwicGVybWxpbmsiOiJiYXoiLCJ3ZWlnaHQiOjEwMDAwfV0.")) let options = VIZURL.ResolveOptions(refBlockNum: 0, refBlockPrefix: 1, expiration: Date(timeIntervalSinceReferenceDate: 0), signer: "foo") let result = try? url?.resolve(with: options) XCTAssertEqual(result, Transaction(refBlockNum: 0, refBlockPrefix: 1, expiration: Date(timeIntervalSinceReferenceDate: 0), operations: [Operation.Vote(voter: "foo", author: "bar", permlink: "baz")], extensions: []))