Skip to content

Commit d52ede9

Browse files
authored
Merge pull request #1021 from boqishan/main
chore: fix incorrect comments in coinfactory before_send hooks
2 parents 5f452a1 + 9fc320b commit d52ede9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x/coinfactory/keeper/before_send.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ func (k Keeper) AssertIsHookWhitelisted(ctx sdk.Context, denom string, contractA
8989
return types.ErrBeforeSendHookNotWhitelisted.Wrapf("no whitelist for contract with codeID (%d) and denomCreator (%s) ", codeID, denomCreator)
9090
}
9191

92-
// TrackBeforeSend calls the before send listener contract suppresses any errors
92+
// TrackBeforeSend calls the before send listener contract but does not return any errors
9393
func (h Hooks) TrackBeforeSend(ctx context.Context, from, to sdk.AccAddress, amount sdk.Coins) {
9494
_ = h.k.callBeforeSendListener(ctx, from, to, amount, false)
9595
}
9696

97-
// TrackBeforeSend calls the before send listener contract returns any errors
97+
// BlockBeforeSend calls the before send listener contract and returns any errors
9898
func (h Hooks) BlockBeforeSend(ctx context.Context, from, to sdk.AccAddress, amount sdk.Coins) error {
9999
return h.k.callBeforeSendListener(ctx, from, to, amount, true)
100100
}

0 commit comments

Comments
 (0)