Fix getLiquidityProviderFromRegistry
This commit is contained in:
parent
7742901e5c
commit
f97e6892b6
@ -562,8 +562,8 @@ contract ERC20BridgeSampler is
|
||||
makerToken
|
||||
);
|
||||
(bool didSucceed, bytes memory returnData) = registryAddress.staticcall(callData);
|
||||
if (didSucceed) {
|
||||
return LibBytes.readAddress(returnData, 0);
|
||||
if (didSucceed && returnData.length == 32) {
|
||||
return LibBytes.readAddress(returnData, 12);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user