Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

fix: _emitMessages should not emit normalized messages #79

Merged
merged 1 commit into from
May 8, 2019

Conversation

jacobheun
Copy link
Contributor

The latest release for message signing resulting in normalized messages being emitted internally. This broke the existing api as the from property is a buffer instead of a string.

This adds tests to ensure that a publish call results in normalized _forwardMessages calls, but non normalized _emitMessages calls.

This was uncovered in the js-ipfs cli pubsub test suite and fixes it, https://travis-ci.com/ipfs/js-ipfs/jobs/198483511#L1069

Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM!

@vasco-santos vasco-santos merged commit 917b7f1 into master May 8, 2019
@vasco-santos vasco-santos deleted the fix/emit-messages branch May 8, 2019 13:11
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