diff --git a/src/main.cc b/src/main.cc index 8c1b771..b1e4fc0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -72,8 +72,6 @@ static bool construct_parent_block(const cryptonote::block& b, cryptonote::block } NAN_METHOD(convert_blob) { - NanScope(); - if (info.Length() < 1) return THROW_ERROR_EXCEPTION("You must provide one argument."); Local target = info[0]->ToObject(); @@ -99,8 +97,6 @@ NAN_METHOD(convert_blob) { } NAN_METHOD(get_block_id) { - NanScope(); - if (info.Length() < 1) return THROW_ERROR_EXCEPTION("You must provide one argument."); Local target = info[0]->ToObject(); @@ -120,8 +116,6 @@ NAN_METHOD(get_block_id) { } NAN_METHOD(construct_block_blob) { - NanScope(); - if (info.Length() < 2) return THROW_ERROR_EXCEPTION("You must provide two arguments."); Local block_template_buf = info[0]->ToObject(); @@ -152,9 +146,8 @@ NAN_METHOD(construct_block_blob) { NanReturnValue(NanNewBufferHandle(output.data(), output.size())); } -NAN_METHOD(address_decode) { - NanEscapableScope(); +NAN_METHOD(address_decode) { if (info.Length() < 1) return THROW_ERROR_EXCEPTION("You must provide one argument."); Local target = info[0]->ToObject(); @@ -178,8 +171,6 @@ NAN_METHOD(address_decode) { } NAN_METHOD(address_decode_integrated) { - NanEscapableScope(); - if (info.Length() < 1) return THROW_ERROR_EXCEPTION("You must provide one argument."); Local target = info[0]->ToObject();