Skip to content

Conversation

@cymonkey
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Nov 16, 2020

Codecov Report

Merging #122 (00593d2) into master (ce3d6d8) will increase coverage by 0.25%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #122      +/-   ##
==========================================
+ Coverage   95.15%   95.40%   +0.25%     
==========================================
  Files          69       70       +1     
  Lines        1093     1154      +61     
  Branches      126      141      +15     
==========================================
+ Hits         1040     1101      +61     
  Misses         53       53              
Impacted Files Coverage Δ
packages/demux/src/AloxideActionHandler.ts 100.00% <100.00%> (ø)
packages/demux/src/VersatileUpdater.ts 100.00% <100.00%> (ø)
packages/demux/src/createWatcher.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 ce3d6d8...00593d2. Read the comment docs.

}

// TODO: enhance this simple check by using regex.
if (typeof actionName !== 'string' || actionName.indexOf('::') < 1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if I input action name *, I will get error here!.

* @param _payload The payload of the incoming Action.
*/
matchActionType(candidateType, subscribedType, _payload?): boolean {
if (subscribedType === '*') {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's better to allow user to subscribe to action of specific contract account. Somethings like eosio::* or governance::*


protected async handleData(actionName: string, data: any, scope?: any): Promise<any> {
const handlerMap = this.#_handlersMap;
const handlerSymbols: symbol[] = handlerMap.get(actionName) || [];
Copy link
Contributor

Choose a reason for hiding this comment

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

In case of I subscribe handler to action *, handler will never be executed.

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