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 crash when starting client with UDC entrypoint on a TNR without registered tokens #2968

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

andrevmatos
Copy link
Contributor

Based on top of #2967
Discovered in and closes #2913

Short description
Title

Definition of Done

  • Steps to manually test the change have been documented
  • Acceptance criteria are met
  • Change has been manually tested by the reviewer (dApp)

Steps to manually test the change (dApp)

@codecov
Copy link

codecov bot commented Oct 10, 2021

Codecov Report

Merging #2968 (261ee27) into master (e6ee970) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2968      +/-   ##
==========================================
- Coverage   93.27%   93.27%   -0.01%     
==========================================
  Files         207      207              
  Lines        8770     8769       -1     
  Branches     1358     1357       -1     
==========================================
- Hits         8180     8179       -1     
  Misses        489      489              
  Partials      101      101              
Flag Coverage Δ
dapp 88.96% <ø> (ø)
dapp.unit 88.96% <ø> (ø)
sdk 95.81% <100.00%> (-0.01%) ⬇️
sdk.e2e 72.81% <0.00%> (+0.01%) ⬆️
sdk.integration 80.27% <0.00%> (+0.01%) ⬆️
sdk.unit 48.75% <100.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
raiden-ts/src/helpers.ts 87.26% <100.00%> (-0.06%) ⬇️

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 e6ee970...261ee27. Read the comment docs.

Copy link
Contributor

@palango palango left a comment

Choose a reason for hiding this comment

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

Last commit is good!

If starting with userDepositContractAddress as contract's entrypoint,
it'd crash if the `TokenNetworkRegistry` didn't have any registered
`TokenNetwork`. This fix allows the client to start, so one can use
`registerToken` to register a TN from this session.
@andrevmatos andrevmatos merged commit d35310c into master Oct 11, 2021
@andrevmatos andrevmatos deleted the fix/no_registered_tn branch October 11, 2021 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check for any initial sync problems with Arbitrum
2 participants