We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6a6e8f commit e421f31Copy full SHA for e421f31
1 file changed
src/main.cc
@@ -77,8 +77,9 @@ Handle<Value> address_decode(const Arguments& args) {
77
uint64_t prefix;
78
79
tools::base58::decode_addr(input, prefix, output);
80
-
81
- output = uint64be_to_blob(prefix) + output;
+
+ if(output.length())
82
+ output = uint64be_to_blob(prefix) + output;
83
84
Buffer* buff = Buffer::New(output.data(), output.size());
85
return scope.Close(buff->handle_);
0 commit comments