Check makerFeeAssetData length before attempting to read id

This commit is contained in:
Amir Bandeali
2020-01-02 15:21:34 -08:00
committed by Amir
parent 27d09713fd
commit b0aa5d3af2
2 changed files with 2 additions and 2 deletions

View File

@@ -492,6 +492,6 @@ contract MixinExchangeWrapper is
pure
returns (bool)
{
return order.makerFeeAssetData.readBytes4(0) == EXCHANGE_V2_ORDER_ID;
return order.makerFeeAssetData.length > 3 && order.makerFeeAssetData.readBytes4(0) == EXCHANGE_V2_ORDER_ID;
}
}