Skip to content

Commit

Permalink
chore: fix some comments (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: riskrose <riskrock@qq.com>
  • Loading branch information
riskrose authored Aug 6, 2024
1 parent 26d8080 commit e6a27c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/rate-limiting/keeper/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ func ParseDenomFromRecvPacket(packet channeltypes.Packet, packetData transfertyp
// For a SEND packet, the Stride channelID is the SOURCE channel
// For a RECEIVE packet, the Stride channelID is the DESTINATION channel
//
// The Source and Desination are defined from the perspective of a packet recipient
// Meaning, when a send packet lands on a the host chain, the "Source" will be the Stride Channel,
// The Source and Designation are defined from the perspective of a packet recipient
// Meaning, when a send packet lands on the host chain, the "Source" will be the Stride Channel,
// and the "Destination" will be the Host Channel
// And, when a receive packet lands on a Stride, the "Source" will be the host zone's channel,
// and the "Destination" will be the Stride Channel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (s *AppTestHelper) Setup() {
s.TestAccs = CreateRandomAccounts(3)
}

// Generate random account addresss
// Generate random account addresses
func CreateRandomAccounts(numAccts int) []sdk.AccAddress {
testAddrs := make([]sdk.AccAddress, numAccts)
for i := 0; i < numAccts; i++ {
Expand Down
2 changes: 1 addition & 1 deletion modules/rate-limiting/types/quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
// CheckExceedsQuota checks if new in/out flow is going to reach the max in/out or not
func (q *Quota) CheckExceedsQuota(direction PacketDirection, amount sdkmath.Int, totalValue sdkmath.Int) bool {
// If there's no channel value (this should be almost impossible), it means there is no
// supply of the asset, so we shoudn't prevent inflows/outflows
// supply of the asset, so we shouldn't prevent inflows/outflows
if totalValue.IsZero() {
return false
}
Expand Down

0 comments on commit e6a27c1

Please sign in to comment.