Skip to content

Commit

Permalink
Missspelling correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Caerlower committed Nov 16, 2023
1 parent 8302c9f commit e6b955a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/split_shares.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (sqwr *shareSplitter) hasRoomForBoth(tx, msg []byte) bool {

txBytesTaken := types.DelimLen(uint64(len(tx))) + len(tx)

maxTxSharesTaken := ((txBytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one becuase we have to add at least one share
maxTxSharesTaken := ((txBytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one because we have to add at least one share

maxMsgSharesTaken := types.MsgSharesUsed(len(msg))

Expand All @@ -225,7 +225,7 @@ func (sqwr *shareSplitter) hasRoomForTx(tx []byte) bool {
return true
}

maxSharesTaken := ((bytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one becuase we have to add at least one share
maxSharesTaken := ((bytesTaken - availableBytes) / consts.TxShareSize) + 1 // plus one because we have to add at least one share

return currentShareCount+maxSharesTaken <= sqwr.maxShareCount
}
Expand Down
2 changes: 1 addition & 1 deletion x/payment/types/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewKeyringSigner(ring keyring.Keyring, name string, chainID string) *Keyrin
}
}

// QueryAccountNumber queries the applicaiton to find the latest account number and
// QueryAccountNumber queries the application to find the latest account number and
// sequence, updating the respective internal fields. The internal account number must
// be set by this method or by manually calling k.SetAccountNumber in order for any built
// transactions to be valide
Expand Down
2 changes: 1 addition & 1 deletion x/payment/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
AttributeKeySize = "size"
)

//NewPayForDataEvent construt a new payformessge sdk.Event
// NewPayForDataEvent constructs a new payformessge sdk.Event
func NewPayForDataEvent(signer string, size uint64) sdk.Event {
return sdk.NewEvent(
EventTypePayForData,
Expand Down
2 changes: 1 addition & 1 deletion x/payment/types/payfordata.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func CreateCommitment(k uint64, namespace, message []byte) ([]byte, error) {
}

// powerOf2MountainRange returns the heights of the subtrees for binary merkle
// mountian range
// mountain range
func powerOf2MountainRange(l, k uint64) []uint64 {
var output []uint64

Expand Down

0 comments on commit e6b955a

Please sign in to comment.