Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion cmd/ethkit/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func init() {
type block struct {
}

// NewBlockCommand returns a new build command to retrieve a block.
// NewBlockCmd returns a new build command to retrieve a block.
func NewBlockCmd() *cobra.Command {
c := &block{}
cmd := &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions ethcoder/abi_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func ABIMarshalStringValues(argTypes []string, input []byte) ([]string, error) {
return StringifyValues(values)
}

// AbiUnmarshalStringValuesAny will take an array of ethereum types as string values, and decode
// ABIUnmarshalStringValuesAny will take an array of ethereum types as string values, and decode
// the string values to runtime objects. This allows simple string value input from an app
// or user, and converts them to the appropriate runtime objects.
//
Expand Down Expand Up @@ -563,7 +563,7 @@ func ABIUnmarshalStringValuesAny(argTypes []string, stringValues []any) ([]any,
return values, nil
}

// AbiUnmarshalStringValues will take an array of ethereum types as string values, and decode
// ABIUnmarshalStringValues will take an array of ethereum types as string values, and decode
// the string values to runtime objects. This allows simple string value input from an app
// or user, and converts them to the appropriate runtime objects.
//
Expand Down
4 changes: 2 additions & 2 deletions ethcoder/abi_sig_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ type abiSignatureTree struct {
right []abiSignatureTree
}

// parseEventArgs parses the event arguments and returns a tree structure
// ie. "address indexed from, address indexed to, uint256 value".
// parseABISignatureArgs parses the event arguments and returns a tree structure
// e.g. "address indexed from, address indexed to, uint256 value".
func parseABISignatureArgs(eventArgs string, iteration int) (abiSignatureTree, error) {
args := strings.TrimSpace(eventArgs)
// if iteration == 0 {
Expand Down
4 changes: 2 additions & 2 deletions ethmonitor/ethmonitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1133,8 +1133,8 @@ func (m *Monitor) GetBlock(blockHash common.Hash) *Block {
return m.chain.GetBlock(blockHash)
}

// GetBlock will search within the retained canonical chain for the txn hash. Passing `optMined true`
// will only return transaction which have not been removed from the chain via a reorg.
// GetTransaction will search within the retained canonical chain for the given transaction hash
// and will only return transactions which have not been removed from the chain via a reorg.
func (m *Monitor) GetTransaction(txnHash common.Hash) (*types.Transaction, Event) {
return m.chain.GetTransaction(txnHash)
}
Expand Down