Skip to content

Commit c964e48

Browse files
committed
Fix synthax
1 parent 7be50f3 commit c964e48

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Service/DefiService.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,10 @@ private function checkAndUpdateTokenListVersion(TokenlistIntegrity $integrityTyp
479479
*/
480480
private function checkMarketplacesDifference($token): bool
481481
{
482-
// $hashSource = md5(serialize($json['secondaryMarketplaces']));
483482
$hashOrigin = md5(serialize($token->getOriginSecondaryMarketplaces()));
484483
$hashWithPair = md5(serialize($token->getSecondaryMarketplaces()));
485484

486-
// if (!hash_equals($hashSource, $hashOrigin) || hash_equals($hashOrigin, $hashWithPair)) {
487-
if (hash_equals($hashOrigin, $hashWithPair)) {
485+
if (hash_equals($hashOrigin, $hashWithPair) && !empty($hashOrigin)) {
488486
return true;
489487
}
490488

0 commit comments

Comments
 (0)