Skip to content

Commit

Permalink
chore: fix some typos (#590)
Browse files Browse the repository at this point in the history
Signed-off-by: avoidaway <[email protected]>
  • Loading branch information
avoidaway authored Dec 10, 2024
1 parent a55d012 commit 9426163
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion grabber/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func checkAncestors(ctx context.Context, b *backend.Backend, blockNumber int64,
func ensureTxsConsistent(ctx context.Context, b *backend.Backend, blockNumber int64, checkExternal bool) (*models.Block, common.Hash, error) {
block, ok, err := b.InternalTxsConsistent(blockNumber)
if err != nil {
return nil, common.Hash{}, fmt.Errorf("failed to check tx consistentcy: %v", err)
return nil, common.Hash{}, fmt.Errorf("failed to check tx consistency: %v", err)
} else if ok {
if !checkExternal {
return nil, common.Hash{}, nil
Expand Down
2 changes: 1 addition & 1 deletion server/backend/db_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (mb *MongoBackend) importTx(ctx context.Context, tx *types.Transaction, rec
lgr.Debug("Parsed tx")

if receiptElem.Error != nil {
return nil, fmt.Errorf("faild to get receipt: %v", err)
return nil, fmt.Errorf("failed to get receipt: %v", err)
}
transaction, receipt, err := mb.ensureReceipt(ctx, transaction, receiptElem.Result.(*types.Receipt))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tools/grabber.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ var grabBlock = function (web3, blockHashOrNumber, listening) {
desiredBlockHashOrNumber = blockHashOrNumber.end;
}
else {
console.log('Error: Aborted becasue found a interval in blocks ' +
console.log('Error: Aborted because found a interval in blocks ' +
'array that doesn\'t have both a start and end.');
}
}
Expand Down

0 comments on commit 9426163

Please sign in to comment.