From b20503c5a242fdd1ec22e8a299e4d4521e6527bc Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Fri, 30 Aug 2019 10:33:02 -0700 Subject: [PATCH] Fix off by 1 error --- contracts/exchange/contracts/test/TestValidatorWallet.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/exchange/contracts/test/TestValidatorWallet.sol b/contracts/exchange/contracts/test/TestValidatorWallet.sol index 42cbf27f66..d034f0686d 100644 --- a/contracts/exchange/contracts/test/TestValidatorWallet.sol +++ b/contracts/exchange/contracts/test/TestValidatorWallet.sol @@ -198,7 +198,7 @@ contract TestValidatorWallet is // Decode the order and hash LibOrder.Order memory order; (order, hash) = abi.decode( - data.slice(4, data.length - 1), + data.slice(4, data.length), (LibOrder.Order, bytes32) ); // Use the Exchange to calculate the hash of the order and assert @@ -211,7 +211,7 @@ contract TestValidatorWallet is // Decode the transaction and hash LibZeroExTransaction.ZeroExTransaction memory transaction; (transaction, hash) = abi.decode( - data.slice(4, data.length - 1), + data.slice(4, data.length), (LibZeroExTransaction.ZeroExTransaction, bytes32) ); // Use the Exchange to calculate the hash of the transaction and assert