diff options
Diffstat (limited to 'contracts/libs/contracts/test/TestLibs/TestLibs.sol')
-rw-r--r-- | contracts/libs/contracts/test/TestLibs/TestLibs.sol | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/contracts/libs/contracts/test/TestLibs/TestLibs.sol b/contracts/libs/contracts/test/TestLibs/TestLibs.sol index bd5f9f9da..7a090adfb 100644 --- a/contracts/libs/contracts/test/TestLibs/TestLibs.sol +++ b/contracts/libs/contracts/test/TestLibs/TestLibs.sol @@ -48,6 +48,32 @@ contract TestLibs is return fillOrderCalldata; } + function publicAbiDecodeFillOrder( + bytes memory fillOrderCalldata + ) + public + pure + returns ( + Order memory order, + uint256 takerAssetFillAmount, + bytes memory signature + ) + { + ( + order, + takerAssetFillAmount, + signature + ) = abi.decode( + fillOrderCalldata, + "((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),uint256,bytes)" + ); + return ( + order, + takerAssetFillAmount, + signature + ); + } + function publicGetPartialAmountFloor( uint256 numerator, uint256 denominator, |