@ -1,5 +1,3 @@
var T = require('./transaction')
module.exports = {
Address: require('./address'),
base58: require('./base58'),
@ -128,7 +128,7 @@ Transaction.prototype.toBuffer = function () {
writeUInt32(this.version)
writeVarInt(this.ins.length)
this.ins.forEach(function(txin, i) {
this.ins.forEach(function(txin) {
writeSlice(txin.outpoint.hash)
writeUInt32(txin.outpoint.index)
writeVarInt(txin.script.buffer.length)
@ -169,7 +169,7 @@ function Wallet(seed, network) {
}
})
tx.ins.forEach(function(txIn, i) {
tx.ins.forEach(function(txIn) {
var op = txIn.outpoint
// copy and convert to big-endian hex