Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename PendingTransactionsStruct to PendingTransactions #25

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions libgoal/libgoal.go
Original file line number Diff line number Diff line change
Expand Up @@ -983,14 +983,14 @@ func (c *Client) GetPendingTransactionsByAddress(addr string, maxTxns uint64) (r
return
}

// PendingTransactionsStruct represents a parsed PendingTransactionsResponse struct.
type PendingTransactionsStruct struct {
// PendingTransactions represents a parsed PendingTransactionsResponse struct.
type PendingTransactions struct {
TopTransactions []transactions.SignedTxn `json:"top-transactions"`
TotalTransactions uint64 `json:"total-transactions"`
}

// GetParsedPendingTransactions returns the parsed response with pending transactions.
func (c *Client) GetParsedPendingTransactions(maxTxns uint64) (txns PendingTransactionsStruct, err error) {
func (c *Client) GetParsedPendingTransactions(maxTxns uint64) (txns PendingTransactions, err error) {
algod, err := c.ensureAlgodClient()
if err == nil {
var resp []byte
Expand All @@ -1006,7 +1006,7 @@ func (c *Client) GetParsedPendingTransactions(maxTxns uint64) (txns PendingTrans
}

// GetParsedPendingTransactionsByAddress returns the parsed response with pending transactions by address.
func (c *Client) GetParsedPendingTransactionsByAddress(addr string, maxTxns uint64) (txns PendingTransactionsStruct, err error) {
func (c *Client) GetParsedPendingTransactionsByAddress(addr string, maxTxns uint64) (txns PendingTransactions, err error) {
algod, err := c.ensureAlgodClient()
if err == nil {
var resp []byte
Expand Down