Skip to content

Commit

Permalink
remove default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmay185 committed Feb 8, 2018
1 parent fa762bc commit 209aab2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default class Actor {
}
}

registerType(Actor, ['chainId', 'app', 'address']);
registerType(Actor, ['chainId', 'app', 'address'], 0x00);
2 changes: 1 addition & 1 deletion modules/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class Signed {
}
}

registerType(Signed, ['sig', 'pubkey']);
registerType(Signed, ['sig', 'pubkey'], 0x00);

export class OneSigTx {
constructor(tx, signed) {
Expand Down
2 changes: 1 addition & 1 deletion wire.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const unexportedType = 0x00;

const typeRegistry = new Map();

export function registerType(type, fields, id = unexportedType) {
export function registerType(type, fields, id) {
typeRegistry.set(type, {'id': id, 'fields': fields});
}

Expand Down

0 comments on commit 209aab2

Please sign in to comment.