From 6368cb17daef24750bd0e8cc7755d1f62cb5fb85 Mon Sep 17 00:00:00 2001 From: SnowGem Date: Thu, 9 May 2019 17:09:37 +0700 Subject: [PATCH] fix bn.tobuffer is not a afunction --- lib/transaction/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction/transaction.js b/lib/transaction/transaction.js index cf38ea5..82bd717 100644 --- a/lib/transaction/transaction.js +++ b/lib/transaction/transaction.js @@ -73,7 +73,7 @@ function Transaction(serialized) { var CURRENT_VERSION = 4; var DEFAULT_NLOCKTIME = 0; -var DEFAULT_VALUEBALANCE = 0; +var DEFAULT_VALUEBALANCE = new BN(0); var MAX_BLOCK_SIZE = 2000000; var DEFAULT_EXPIRY_HEIGHT = 0; var DEFAULT_VERSION_GROUP_ID = 0x892f2085;