File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
swift-polaris-playground.playground
Pages/Test.xcplaygroundpage Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import Foundation
4
4
5
5
var api = API ( apiURI: " https://108.41.124.60:8000 " ) // Initialize API instance
6
6
7
- var test = api. Accounts. NewAccount ( ) // Initialize Polaris account
7
+ var accounts = api. Accounts. GetAllAccounts ( ) // Get all accounts
8
8
9
- print ( test ) // Log account
9
+ print ( accounts )
10
10
11
11
//: [Next](@next)
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class AccountsAPI {
16
16
17
17
// GetAllAccounts attempts to fetch the list of working accounts.
18
18
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
20
20
}
21
21
22
22
// AccountFromKey attempts to derive an account from a given private key
You can’t perform that action at this time.
0 commit comments