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:
commit
18e183f14a
|
@ -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 == "" ||
|
||||
|
|
Loading…
Reference in New Issue