Skip to content

Commit

Permalink
Fix toBase58
Browse files Browse the repository at this point in the history
  • Loading branch information
pokkst committed Aug 17, 2020
1 parent a52cf8f commit dd25e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/bitcoinj/core/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public static Address fromKey(final NetworkParameters params, final ECKey key, f
}

public String toBase58() {
return new LegacyAddress(params, getOutputScriptType() == ScriptType.P2PKH, getHash()).toString();
return new LegacyAddress(params, getOutputScriptType() != ScriptType.P2PKH, getHash()).toString();
}
/**
* Get either the public key hash or script hash that is encoded in the address.
Expand Down

0 comments on commit dd25e4e

Please sign in to comment.