Skip to content

Commit

Permalink
Update x/cronos/keeper/keeper.go
Browse files Browse the repository at this point in the history
Signed-off-by: mmsqe <mavis@crypto.com>
  • Loading branch information
mmsqe authored Dec 5, 2023
1 parent acaeab2 commit ea43f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/cronos/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (k Keeper) onPacketResult(
senderAddr := common.BytesToAddress(sender)

Check warning on line 298 in x/cronos/keeper/keeper.go

View check run for this annotation

Codecov / codecov/patch

x/cronos/keeper/keeper.go#L294-L298

Added lines #L294 - L298 were not covered by tests
contractAddr := common.HexToAddress(contractAddress)
if senderAddr != contractAddr {
return fmt.Errorf("sender is not authenticated: expected %s, got %s\n", senderAddr, contractAddr)
return fmt.Errorf("sender is not authenticated: expected %s, got %s", senderAddr, contractAddr)
}

Check warning on line 302 in x/cronos/keeper/keeper.go

View check run for this annotation

Codecov / codecov/patch

x/cronos/keeper/keeper.go#L300-L302

Added lines #L300 - L302 were not covered by tests
data, err := cronosprecompiles.OnPacketResultCallback(packet.SourceChannel, packet.Sequence, acknowledgement)
if err != nil {
Expand Down

0 comments on commit ea43f3c

Please sign in to comment.