Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

toNetwork(): make the name optional#202

Merged
bpierre merged 2 commits intomasterfrom
tonetwork-optional-name
Aug 14, 2020
Merged

toNetwork(): make the name optional#202
bpierre merged 2 commits intomasterfrom
tonetwork-optional-name

Conversation

@bpierre
Copy link
Copy Markdown
Contributor

@bpierre bpierre commented Aug 12, 2020

Also moved the network-related functions into network.ts.

Also moved the network-related functions into network.ts.
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 12, 2020

Codecov Report

Merging #202 into master will decrease coverage by 0.05%.
The diff coverage is 96.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #202      +/-   ##
==========================================
- Coverage   34.96%   34.90%   -0.06%     
==========================================
  Files          98       99       +1     
  Lines        1799     1799              
  Branches      276      276              
==========================================
- Hits          629      628       -1     
- Misses       1170     1171       +1     
Flag Coverage Δ
#unittests 34.90% <96.87%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/connect-core/src/utils/index.ts 0.00% <0.00%> (ø)
packages/connect-core/src/utils/misc.ts 100.00% <ø> (ø)
packages/connect-core/src/utils/network.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12dec7e...a451830. Read the comment docs.

@bpierre bpierre requested a review from 0xGabi August 14, 2020 00:33
Copy link
Copy Markdown
Contributor

@0xGabi 0xGabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, super concise, and clean PR. I think it checks all of the boxes for what we should aim for:

  • Specific change
  • Small change
  • Tested


// Just a little help for TypeScript, at this
// point we know that chainId cannot be undefined.
chainId = chainId as number
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@bpierre bpierre merged commit efa70f8 into master Aug 14, 2020
@bpierre bpierre deleted the tonetwork-optional-name branch August 14, 2020 21:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants