fixed locks filter
Some checks are pending
Deploy FrontEnd / deploy-staging (push) Waiting to run
Deploy FrontEnd / deploy-production (push) Waiting to run
CI script / lint (push) Waiting to run
CI script / build (push) Waiting to run
CI script / SonarCloud (push) Waiting to run

This commit is contained in:
hueso 2024-10-09 22:05:25 -03:00
parent 42fcae0465
commit fd61376b36

View File

@ -172,10 +172,7 @@ const listLockTransactionBySellerAddress = async (
const eventsReleasedLocks = await p2pContract.queryFilter(filterAddedLocks);
return eventsReleasedLocks.filter((lock) =>
lock.args?.seller
.toHexString()
.substring(3)
.includes(sellerAddress.substring(2).toLowerCase())
lock.args?.seller.toLowerCase() == sellerAddress.toLowerCase()
);
};