Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined error in tip parsing #340

Merged
merged 2 commits into from
Aug 17, 2023
Merged

Fix undefined error in tip parsing #340

merged 2 commits into from
Aug 17, 2023

Conversation

frankisawesome
Copy link
Contributor

@frankisawesome frankisawesome commented Aug 17, 2023

Motivation

The fulfillOrders flow when using a tip will hit this function and fungible (NATIVE) tokens will be mapped to have missing identifier field causing errors downstream.

I removed the errornous comment and implemented the fix but due to limited capacity I didn't bother with tests :)

Solution

Signed-off-by: Frank Li <[email protected]>
@ryanio
Copy link
Collaborator

ryanio commented Aug 17, 2023

Thanks! Can you use the nullish coalescing operator ?? instead of ||?

Signed-off-by: Frank Li <[email protected]>
@frankisawesome
Copy link
Contributor Author

@ryanio done, thank you

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 50.00% and project coverage change: -0.01% ⚠️

Comparison is base (3939e3b) 98.17% compared to head (5015b20) 98.16%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #340      +/-   ##
==========================================
- Coverage   98.17%   98.16%   -0.01%     
==========================================
  Files          33       33              
  Lines       14025    14025              
  Branches      672      673       +1     
==========================================
- Hits        13769    13768       -1     
- Misses        251      252       +1     
  Partials        5        5              
Files Changed Coverage Δ
src/utils/order.ts 87.15% <50.00%> (-0.35%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ryanio ryanio merged commit e250007 into ProjectOpenSea:main Aug 17, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants