You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have received all the dependencies related to token-sdk and here I am attaching image for same
What I want to do?
I want to import com.r3.corda.lib.tokens.contracts.utilities.TransactionUtilities for below code val fungibleToken = FungibleToken(amount,holder,TransactionUtilitiesKt.getAttachmentIdForGenericParam(tokenPointer))
Note: I'm doing code in kotlin
What happened ?
It says unresolved reference at TransactionUtilities So, The TransactionUtilities removed in the latest updates? if yes suggest any way to call FungibleToken.
Any suggestions/help appreciated.
The text was updated successfully, but these errors were encountered:
Hi, function that you are trying to use is an extension function on TokenType: fun TokenType.getAttachmentIdForGenericParam(): SecureHash?. So to use it from kotlin you would call it this way: amount.token.tokenType.getAttachmentIdForGenericParam() (TransactionUtilitiesKt.etc is Java syntax for calling extension functions). However you don't have to use it at all, as there is a reasonable default for FungibleToken constructor. Hope that helps!
If the imports don't work, try to clean caches, there was no change to TransactionUtilities since 1.0
I have received all the dependencies related to token-sdk and here I am attaching image for same
What I want to do?
I want to import com.r3.corda.lib.tokens.contracts.utilities.TransactionUtilities for below code
val fungibleToken = FungibleToken(amount,holder,TransactionUtilitiesKt.getAttachmentIdForGenericParam(tokenPointer))
Note: I'm doing code in kotlin
What happened ?
It says unresolved reference at TransactionUtilities So, The TransactionUtilities removed in the latest updates? if yes suggest any way to call FungibleToken.
Any suggestions/help appreciated.
The text was updated successfully, but these errors were encountered: