ergoplatform / ergo-appkit

Appkit: A Library for Java/Scala/Kotlin Development of Ergo Applications
MIT License
38 stars 27 forks source link

Fix ClassCastException introduced in #202 #206

Closed MrStahlfelge closed 1 year ago

MrStahlfelge commented 1 year ago

Changes in #202 could end up in

  java.lang.ClassCastException: class sigmastate.utils.Helpers$EitherOps cannot be cast to class scala.util.Either (sigmastate.utils.Helpers$EitherOps and scala.util.Either are in unnamed module of loader 'app')

instead of throwing NotEnoughCoinsForChangeException. This PR fixes this and adds the missing test case.