Skip to content

Commit

Permalink
Cleanup position index name and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Jun 27, 2023
1 parent a2e0774 commit f9a8617
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ipld/ipldbindcode/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ func (n Transaction) HasIndex() bool {
return n.Index != nil && *n.Index != nil
}

// GetIndex returns the value of the 'Index' field and
// GetPositionIndex returns the 'Index' field, which indicates
// the index of the transaction in the block (0-based), and
// a flag indicating whether the field has a value.
func (n Transaction) GetIndex() (int, bool) {
func (n Transaction) GetPositionIndex() (int, bool) {
if n.Index == nil || *n.Index == nil {
return 0, false
}
Expand Down

0 comments on commit f9a8617

Please sign in to comment.