Run the admin_cost check before the shared type rules
This commit is contained in:
1 parent
fbfbbd168e
commit
7b66bc1650
1 file changed
+2
-2
+2
-2
@@ -265,10 +265,10 @@ def validate_transaction(payload, markets):
|
|||||||
|
|
||||||
to_market_id = None
|
to_market_id = None
|
||||||
if tx_type is not None:
|
if tx_type is not None:
|
||||||
|
if tx_type == "admin_cost":
|
||||||
|
_check_admin_cost(legs, errors)
|
||||||
if tx_type == "trade":
|
if tx_type == "trade":
|
||||||
_check_trade(legs, errors)
|
_check_trade(legs, errors)
|
||||||
elif tx_type == "admin_cost":
|
|
||||||
_check_admin_cost(legs, errors)
|
|
||||||
else:
|
else:
|
||||||
for name, message in _REQUIRED.get(tx_type, ()):
|
for name, message in _REQUIRED.get(tx_type, ()):
|
||||||
if legs[name] is None and name not in errors:
|
if legs[name] is None and name not in errors:
|
||||||
|
|||||||
Reference in new issue
Block a user