-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add gRPC validation for EscrowAddress (#6059)
* Add check that Channel exists for EscrowAddress * Changed import of errors * Fix compilation errors * Fixed import * Fix broken test * Add test that checks for channelNotFound error * Added HasChannel to ChannelKeeper interface and used it in gRPC validation * Fix test and add back test for ChannelNotFound * Change import alias. * Added test case for invalid channelID * Trim whitespace * Update modules/apps/transfer/keeper/grpc_query.go Condense check for existence of channel Co-authored-by: Damian Nolan <[email protected]> * Update modules/apps/transfer/keeper/grpc_query.go Co-authored-by: Damian Nolan <[email protected]> * Added tests for empty portID and empty channelID --------- Co-authored-by: Damian Nolan <[email protected]>
- Loading branch information
1 parent
2555a7c
commit e7c74b0
Showing
3 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters