Merge pull request #303 from meshplus/fix/empty-aei-id

fix(executor): check asset exchange id in asset_exchange.go
This commit is contained in:
jzhe 2020-12-23 14:11:31 +08:00 committed by GitHub
commit 18e183f14a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 == "" ||