Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit abf16a0

Browse files
committed
ico members of Hybryd are Base58 encoded
1 parent 44ff7ee commit abf16a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/src/main/scala/examples/hybrid/HybridNodeViewHolder.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import scorex.core.transaction.box.proposition.PublicKey25519Proposition
1414
import scorex.core.transaction.state.PrivateKey25519Companion
1515
import scorex.core.utils.{NetworkTimeProvider, ScorexLogging}
1616
import scorex.core.{ModifierTypeId, NodeViewHolder, NodeViewModifier}
17+
import scorex.crypto.encode.Base58
1718
import scorex.crypto.signatures.PublicKey
1819

1920

@@ -122,7 +123,7 @@ object HybridNodeViewHolder extends ScorexLogging {
122123
"GXkCiK2P7khngAtfhG8TSqm4nfPbpMDNFBiG8CF41ZtP",
123124
"8etCeR343fg5gktxMh5j64zofFvWuyNTwmHAzWbsptoC",
124125
"AnwYrjV3yb9NuYWz31C758TZGTUCLD7zZdSYubbewygt"
125-
).map(s => PublicKey25519Proposition(PublicKey @@ encoder.decode(s).get))
126+
).map(s => PublicKey25519Proposition(PublicKey @@ Base58.decode(s).get))
126127
.ensuring(_.length == GenesisAccountsNum)
127128

128129
val genesisAccount = PrivateKey25519Companion.generateKeys("genesis".getBytes)

0 commit comments

Comments
 (0)