Skip to content

Commit e421f31

Browse files
committed
Small bugfix
1 parent f6a6e8f commit e421f31

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ Handle<Value> address_decode(const Arguments& args) {
7777
uint64_t prefix;
7878

7979
tools::base58::decode_addr(input, prefix, output);
80-
81-
output = uint64be_to_blob(prefix) + output;
80+
81+
if(output.length())
82+
output = uint64be_to_blob(prefix) + output;
8283

8384
Buffer* buff = Buffer::New(output.data(), output.size());
8485
return scope.Close(buff->handle_);

0 commit comments

Comments
 (0)