Skip to content

Commit

Permalink
chore: fix some typos in comments (#528)
Browse files Browse the repository at this point in the history
Signed-off-by: vitalmotif <[email protected]>
  • Loading branch information
vitalmotif authored Apr 29, 2024
1 parent 3620b7c commit 6726885
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/indexer/operator_pubkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (a *OperatorPubKeysAccumulator) UpdateObject(object indexer.AccumulatorObje
return object, nil
}

// SerializeObject object takes the accummulator object, and serializes it using the rules for the specified fork.
// SerializeObject object takes the accumulator object, and serializes it using the rules for the specified fork.
func (a *OperatorPubKeysAccumulator) SerializeObject(object indexer.AccumulatorObject, fork indexer.UpgradeFork) ([]byte, error) {
switch fork {
case "genesis":
Expand Down
2 changes: 1 addition & 1 deletion core/thegraph/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type (
}

// The indexed operator state consists of both mutable properties (socket) and immutable properties
// (everyhing else: pubkeyG1, pubkeyG2, id). For the socket, we always want the latest value, irrespective
// (everything else: pubkeyG1, pubkeyG2, id). For the socket, we always want the latest value, irrespective
// of the reference block number. For the immutable properties, we can also use the value from the latest block
// since value cannot change. Thus, we always pull the state from the latest block indexed by the subgraph.
//
Expand Down
2 changes: 1 addition & 1 deletion indexer/accumulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type Accumulator interface {

UpdateObject(object AccumulatorObject, header *Header, event Event) (AccumulatorObject, error)

// Serialize object takes the accummulator object, and serializes it using the rules for the specified fork.
// Serialize object takes the accumulator object, and serializes it using the rules for the specified fork.
SerializeObject(object AccumulatorObject, fork UpgradeFork) ([]byte, error)

// DeSerialize object deserializes an accumulator object using the rules for the specified fork.
Expand Down
2 changes: 1 addition & 1 deletion indexer/test/accumulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (a *Accumulator) UpdateObject(object indexer.AccumulatorObject, header *ind
return obj, nil
}

// Serialize object takes the accummulator object, and serializes it using the rules for the specified fork.
// Serialize object takes the accumulator object, and serializes it using the rules for the specified fork.
func (a *Accumulator) SerializeObject(object indexer.AccumulatorObject, fork indexer.UpgradeFork) ([]byte, error) {

switch fork {
Expand Down
2 changes: 1 addition & 1 deletion indexer/test/accumulator/accumulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (a *Accumulator) UpdateObject(object indexer.AccumulatorObject, event index
return obj
}

// Serialize object takes the accummulator object, and serializes it using the rules for the specified fork.
// Serialize object takes the accumulator object, and serializes it using the rules for the specified fork.
func (a *Accumulator) SerializeObject(object indexer.AccumulatorObject, fork indexer.UpgradeFork) ([]byte, error) {

switch fork {
Expand Down

0 comments on commit 6726885

Please sign in to comment.