I am trying a scenario where
- Party A issues a token to Party B
- Party B will move that token to Party C
- Party C move that token again to Party A
- Party A try to redeem it
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}"
}