Skip to content

Commit

Permalink
fix (core): Adjust MultihashWithMultibase to new Multibase API
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Jan 4, 2025
1 parent f6c5ed2 commit b868195
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static MultihashWithMultibase decode(String encoded) {
if (encoded.length() == 46 && encoded.startsWith("Qm"))
// TODO Base58BTC or Base58Flickr ?
base = Multibase.Base.Base58BTC;
else base = Multibase.Base.lookup(encoded.charAt(0));
else base = Multibase.Base.lookup(encoded);
return new MultihashWithMultibase(base, Multihash.decode(encoded));
}

Expand Down

0 comments on commit b868195

Please sign in to comment.