diff --git a/lib/bufferwriter.js b/lib/bufferwriter.js index 5bf5800..d813bcb 100644 --- a/lib/bufferwriter.js +++ b/lib/bufferwriter.js @@ -2,7 +2,7 @@ var BN = require('./bn'); var BufferWriter = function BufferWriter(obj) { if (!(this instanceof BufferWriter)) - return new BufferReader(obj); + return new BufferWriter(obj); if (obj) this.set(obj); else