We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be50f3 commit c964e48Copy full SHA for c964e48
src/Service/DefiService.php
@@ -479,12 +479,10 @@ private function checkAndUpdateTokenListVersion(TokenlistIntegrity $integrityTyp
479
*/
480
private function checkMarketplacesDifference($token): bool
481
{
482
-// $hashSource = md5(serialize($json['secondaryMarketplaces']));
483
$hashOrigin = md5(serialize($token->getOriginSecondaryMarketplaces()));
484
$hashWithPair = md5(serialize($token->getSecondaryMarketplaces()));
485
486
-// if (!hash_equals($hashSource, $hashOrigin) || hash_equals($hashOrigin, $hashWithPair)) {
487
- if (hash_equals($hashOrigin, $hashWithPair)) {
+ if (hash_equals($hashOrigin, $hashWithPair) && !empty($hashOrigin)) {
488
return true;
489
}
490
0 commit comments