diff --git a/core/src/main/scala/org/bitcoins/core/hd/BIP32Path.scala b/core/src/main/scala/org/bitcoins/core/hd/BIP32Path.scala index e3d7c77592..0828bcb05e 100644 --- a/core/src/main/scala/org/bitcoins/core/hd/BIP32Path.scala +++ b/core/src/main/scala/org/bitcoins/core/hd/BIP32Path.scala @@ -83,7 +83,8 @@ abstract class BIP32Path extends SeqWrapper[BIP32Node] { override def toString: String = path .map { case BIP32Node(index, hardened) => - index.toString + (if (hardened) "'" else "") + val isHardened = if (hardened) "'" else "" + index.toString + isHardened } .fold("m")((accum, curr) => accum + "/" + curr)