Merge pull request #2501 from 0xProject/fix/bridge-sampler/get-liquidity-provider-from-registry
Fix getLiquidityProviderFromRegistry
This commit is contained in:
commit
d574ca1628
@ -562,8 +562,8 @@ contract ERC20BridgeSampler is
|
|||||||
makerToken
|
makerToken
|
||||||
);
|
);
|
||||||
(bool didSucceed, bytes memory returnData) = registryAddress.staticcall(callData);
|
(bool didSucceed, bytes memory returnData) = registryAddress.staticcall(callData);
|
||||||
if (didSucceed) {
|
if (didSucceed && returnData.length == 32) {
|
||||||
return LibBytes.readAddress(returnData, 0);
|
return LibBytes.readAddress(returnData, 12);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user