Skip to content

Commit f357e69

Browse files
committed
[doc] add linebreak for GoDoc
1 parent 3f2f8dd commit f357e69

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

account.go

+5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ func (c *Client) MultiAccountBalance(addresses ...string) (balances []AccountBal
3030
}
3131

3232
// NormalTxByAddress gets a list of "normal" transactions by address
33+
//
3334
// startBlock and endBlock can be nil
35+
//
3436
// if desc is true, result will be sorted in blockNum descendant order.
3537
func (c *Client) NormalTxByAddress(address string, startBlock *int, endBlock *int, page int, offset int, desc bool) (txs []NormalTx, err error) {
3638
param := M{
@@ -51,7 +53,9 @@ func (c *Client) NormalTxByAddress(address string, startBlock *int, endBlock *in
5153
}
5254

5355
// InternalTxByAddress gets a list of "internal" transactions by address
56+
//
5457
// startBlock and endBlock can be nil
58+
//
5559
// if desc is true, result will be sorted in descendant order.
5660
func (c *Client) InternalTxByAddress(address string, startBlock *int, endBlock *int, page int, offset int, desc bool) (txs []InternalTx, err error) {
5761
param := M{
@@ -73,6 +77,7 @@ func (c *Client) InternalTxByAddress(address string, startBlock *int, endBlock *
7377

7478
// ERC20Transfers get a list of "erc20 - token transfer events" by
7579
// contract address and/or from/to address.
80+
//
7681
// leave undesired condition to nil.
7782
func (c *Client) ERC20Transfers(contractAddress, address *string, startBlock *int, endBlock *int, page int, offset int) (txs []ERC20Transfer, err error) {
7883
param := M{

transaction.go

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import "errors"
1313
var ErrPreByzantiumTx = errors.New("pre-byzantium transaction does not support receipt status check")
1414

1515
// ExecutionStatus checks contract execution status (if there was an error during contract execution)
16+
//
1617
// note on IsError: 0 = pass, 1 = error
1718
func (c *Client) ExecutionStatus(txHash string) (status ExecutionStatus, err error) {
1819
param := M{
@@ -24,8 +25,11 @@ func (c *Client) ExecutionStatus(txHash string) (status ExecutionStatus, err err
2425
}
2526

2627
// ReceiptStatus checks transaction receipt status
28+
//
2729
// only applicable for post byzantium fork transactions, i.e. after block 4,370,000
30+
//
2831
// An special err ErrPreByzantiumTx raises for the transaction before byzantium fork.
32+
//
2933
// Note: receiptStatus: 0 = Fail, 1 = Pass.
3034
func (c *Client) ReceiptStatus(txHash string) (receiptStatus int, err error) {
3135
param := M{

0 commit comments

Comments
 (0)