diff --git a/Tests/TorusUtilsTests/Helpers/EtherAddress.swift b/Tests/TorusUtilsTests/Helpers/EtherAddress.swift new file mode 100644 index 00000000..9d87833a --- /dev/null +++ b/Tests/TorusUtilsTests/Helpers/EtherAddress.swift @@ -0,0 +1,14 @@ +import Foundation +import XCTest +@testable import TorusUtils + +class EtherTest: XCTestCase { + func testPublicToEtherAddress() { + let fullAddress = String("04238569d5e12caf57d34fb5b2a0679c7775b5f61fd18cd69db9cc600a651749c3ec13a9367380b7a024a67f5e663f3afd40175c3223da63f6024b05d0bd9f292e".dropFirst(2)) + let X: String = fullAddress[0..<64] + let Y: String = fullAddress[64..