From 09ed50b7ad29f4822a6fe0399c1759baf0be03a2 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 2 Dec 2014 03:07:11 -0800 Subject: [PATCH] fix options checks. --- src/bitcoindjs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 8c809333..d436d6d4 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -1990,10 +1990,10 @@ NAN_METHOD(GetAddrTransactions) { String::Utf8Value s_(options->Get(NanNew("addr"))->ToString()); addr = std::string(*s_); } - if (options->Get(NanNew("index"))->IsString()) { + if (options->Get(NanNew("index"))->IsNumber()) { blockindex = options->Get(NanNew("index"))->IntegerValue(); } - if (options->Get(NanNew("blockindex"))->IsString()) { + if (options->Get(NanNew("blockindex"))->IsNumber()) { blockindex = options->Get(NanNew("blockindex"))->IntegerValue(); } }