Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoxiangirl <[email protected]>
  • Loading branch information
xiaoxiangirl committed Jun 5, 2024
1 parent 4827cf2 commit baa479e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/rate-limiting/keeper/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ 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
// The Source and Designation 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,
// 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,
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 baa479e

Please sign in to comment.