Skip to content

Commit 88e4720

Browse files
committed
sources: Fixed GetAllAccounts invalid URI.
1 parent 74bab04 commit 88e4720

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

swift-polaris-playground.playground/Pages/Test.xcplaygroundpage/Contents.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Foundation
44

55
var api = API(apiURI: "https://108.41.124.60:8000") // Initialize API instance
66

7-
var test = api.Accounts.NewAccount() // Initialize Polaris account
7+
var accounts = api.Accounts.GetAllAccounts() // Get all accounts
88

9-
print(test) // Log account
9+
print(accounts)
1010

1111
//: [Next](@next)

swift-polaris-playground.playground/Sources/AccountsAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class AccountsAPI {
1616

1717
// GetAllAccounts attempts to fetch the list of working accounts.
1818
public func GetAllAccounts() -> ([String: Any]?, Error?) {
19-
return Requests.MakeRequest(requestURI: "\(URI)/NewAccount", requestContents: [:]) // Return response
19+
return Requests.MakeRequest(requestURI: "\(URI)/GetAllAccounts", requestContents: [:]) // Return response
2020
}
2121

2222
// AccountFromKey attempts to derive an account from a given private key

0 commit comments

Comments
 (0)