Skip to content
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