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: parse account name correctly for subledgers #31

Closed
wants to merge 2 commits into from

Conversation

sentientwaffle
Copy link
Contributor

No description provided.

@@ -331,7 +331,8 @@ class FiveBellsLedger extends EventEmitter2 {
}

* _send (transfer) {
const sourceAddress = parseAddress(transfer.account)
// Strip off the prefix and request id.
const sourceUsername = transfer.account.slice(this.prefix.length).split('.')[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

This behavior should be documented somewhere

Copy link
Contributor

Choose a reason for hiding this comment

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

It would also be good to add a test for it

@codecov-io
Copy link

codecov-io commented Aug 25, 2016

Current coverage is 92.60% (diff: 100%)

Merging #31 into master will decrease coverage by 0.08%

@@             master        #31   diff @@
==========================================
  Files             4          4          
  Lines           260        257     -3   
  Methods          32         31     -1   
  Messages          0          0          
  Branches         62         62          
==========================================
- Hits            241        238     -3   
  Misses           19         19          
  Partials          0          0          

Powered by Codecov. Last update a006b26...190a32c

@emschwartz
Copy link
Contributor

LGTM. @justmoon might want to review to make sure he agrees with this functionality

@justmoon
Copy link
Contributor

Whoops, didn't see this one. #32

@justmoon justmoon closed this Aug 25, 2016
@justmoon justmoon deleted the dj-subledger branch August 25, 2016 23:10
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.

None yet

4 participants