forked from grassrootseconomics/visedriver
		
	Added a placeholder function to get transactions
This commit is contained in:
		
							parent
							
								
									59d0446020
								
							
						
					
					
						commit
						f36847d966
					
				| @ -94,6 +94,7 @@ func (ls *LocalHandlerService) GetHandler(accountService server.AccountServiceIn | |||||||
| 	ls.DbRs.AddLocalFunc("confirm_pin_change", ussdHandlers.ConfirmPinChange) | 	ls.DbRs.AddLocalFunc("confirm_pin_change", ussdHandlers.ConfirmPinChange) | ||||||
| 	ls.DbRs.AddLocalFunc("quit_with_help", ussdHandlers.QuitWithHelp) | 	ls.DbRs.AddLocalFunc("quit_with_help", ussdHandlers.QuitWithHelp) | ||||||
| 	ls.DbRs.AddLocalFunc("fetch_custodial_balances", ussdHandlers.FetchCustodialBalances) | 	ls.DbRs.AddLocalFunc("fetch_custodial_balances", ussdHandlers.FetchCustodialBalances) | ||||||
|  | 	ls.DbRs.AddLocalFunc("get_transactions", ussdHandlers.GetTransactions) | ||||||
| 
 | 
 | ||||||
| 	return ussdHandlers, nil | 	return ussdHandlers, nil | ||||||
| } | } | ||||||
|  | |||||||
| @ -1045,3 +1045,12 @@ func (h *Handlers) GetProfileInfo(ctx context.Context, sym string, input []byte) | |||||||
| 
 | 
 | ||||||
| 	return res, nil | 	return res, nil | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | // GetTransactions retrieves the transactions from the API using the "PublicKey" 
 | ||||||
|  | func (h *Handlers) GetTransactions(ctx context.Context, sym string, input []byte) (resource.Result, error) { | ||||||
|  | 	var res resource.Result | ||||||
|  | 	 | ||||||
|  | 	res.Content = "Transaction list" | ||||||
|  | 
 | ||||||
|  | 	return res, nil | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user