@0x/contracts-zero-ex
: Add reentrancy guard to mtx functions
`@0x/contracts-zero-ex`: Add refund mechanism to mtxs `@0x/contracts-zero-ex`: Pass sender to transfomers. `@0x/contracts-zero-ex`: Refund protocol fees to `refundReceiver` in FQT. `@0x/utils`: Add EP flavor of `IllegalReentrancyError` `@0x/order-utils`: Add `refundReceiver` to FQT transform data. `@0x/asset-swapper`: Add `refundReceiver` support to EP swap quote consumer.
This commit is contained in:
committed by
Lawrence Forman
parent
7b0a1c3630
commit
9cda9f69cd
@@ -32,18 +32,14 @@ contract TestTransformerHost {
|
||||
|
||||
function rawExecuteTransform(
|
||||
IERC20Transformer transformer,
|
||||
bytes32 callDataHash,
|
||||
address taker,
|
||||
bytes calldata data
|
||||
IERC20Transformer.TransformContext calldata context
|
||||
)
|
||||
external
|
||||
{
|
||||
(bool _success, bytes memory resultData) =
|
||||
address(transformer).delegatecall(abi.encodeWithSelector(
|
||||
transformer.transform.selector,
|
||||
callDataHash,
|
||||
taker,
|
||||
data
|
||||
context
|
||||
));
|
||||
if (!_success) {
|
||||
resultData.rrevert();
|
||||
|
Reference in New Issue
Block a user