I am trying a scenario where
I am facing issues while redeeming the token using RedeemFungibleTokens
Error : java.lang.NoClassDefFoundError: com/r3/corda/lib/ci/workflows/SyncKeyMappingFlow
I've written the code as
@Suspendable
override fun call():String {
val stateAndRef = serviceHub.vaultService.queryBy<FungibleToken>()
.states.filter {it.state.data.holder.equals(ourIdentity) }.first()
val amount:Amount<TokenType> = Amount(amount,stateAndRef.state.data.tokenType)
val stx = subFlow(RedeemFungibleTokens(amount,ourIdentity, emptyList(),null))
return "Redeemed $amount token(s) by ${ourIdentity.name.organisation}"+
"\ntxId: ${stx.id}"
}
Perhaps you are missing the confidential identity dependency in your project. Try adding it to your project.
cordapp "$confidential_id_release_group:ci-workflows:$confidential_id_release_version".
Also make sure its deployed to the node.