fix(executor): check asset exchange id in asset_exchange.go

This commit is contained in:
zhourong 2020-12-22 20:43:42 +08:00
parent 62366d6e95
commit 1899e816b6
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ func AssetExchangeKey(id string) string {
}
func checkAssetExchangeInfo(aei *pb.AssetExchangeInfo) error {
if aei.SenderOnDst == "" ||
if aei.Id == "" ||
aei.SenderOnDst == "" ||
aei.ReceiverOnSrc == "" ||
aei.SenderOnSrc == "" ||
aei.ReceiverOnDst == "" ||