Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Fix off by 1 error
Browse files Browse the repository at this point in the history
  • Loading branch information
abandeali1 committed Aug 30, 2019
1 parent d0869a8 commit b20503c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/exchange/contracts/test/TestValidatorWallet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b20503c

Please sign in to comment.