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

Commit

Permalink
Merge pull request #2501 from 0xProject/fix/bridge-sampler/get-liquid…
Browse files Browse the repository at this point in the history
…ity-provider-from-registry

Fix getLiquidityProviderFromRegistry
  • Loading branch information
moodlezoup authored Feb 27, 2020
2 parents 7742901 + f97e689 commit d574ca1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit d574ca1

Please sign in to comment.