diff --git a/actor.js b/actor.js index bfefea9c..2028082b 100644 --- a/actor.js +++ b/actor.js @@ -8,4 +8,4 @@ export default class Actor { } } -registerType(Actor, ['chainId', 'app', 'address']); +registerType(Actor, ['chainId', 'app', 'address'], 0x00); diff --git a/modules/auth.js b/modules/auth.js index cf1924a9..9cb73449 100644 --- a/modules/auth.js +++ b/modules/auth.js @@ -7,7 +7,7 @@ export class Signed { } } -registerType(Signed, ['sig', 'pubkey']); +registerType(Signed, ['sig', 'pubkey'], 0x00); export class OneSigTx { constructor(tx, signed) { diff --git a/wire.js b/wire.js index 7230aa85..35de92d2 100644 --- a/wire.js +++ b/wire.js @@ -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}); }