Small bugfix
parent
f6a6e8fd34
commit
e421f3163e
|
@ -78,7 +78,8 @@ Handle<Value> address_decode(const Arguments& args) {
|
|||
|
||||
tools::base58::decode_addr(input, prefix, output);
|
||||
|
||||
output = uint64be_to_blob(prefix) + output;
|
||||
if(output.length())
|
||||
output = uint64be_to_blob(prefix) + output;
|
||||
|
||||
Buffer* buff = Buffer::New(output.data(), output.size());
|
||||
return scope.Close(buff->handle_);
|
||||
|
|
Loading…
Reference in New Issue