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
This is a small thing I noticed with the new FungibleTokenBuilder and NonFungibleTokenBuilder classes. I'm not sure if it matters but I think it would cause some issues if you wanted to use them with AnonymousParty?
The holder parameter for FungibleToken and NonFungibleToken is AbstractParty:
open class FungibleToken @JvmOverloads constructor(
override val amount: Amount<IssuedTokenType>,
override val holder: AbstractParty,
override val tokenTypeJarHash: SecureHash? = amount.token.tokenType.getAttachmentIdForGenericParam()
) : FungibleState<IssuedTokenType>, AbstractToken, QueryableState {
Whereas the heldBy function in the new builders is Party:
fun heldBy(party: Party): FungibleTokenBuilder = this.apply {
this.holder = party
}
The text was updated successfully, but these errors were encountered:
This is a small thing I noticed with the new
FungibleTokenBuilder
andNonFungibleTokenBuilder
classes. I'm not sure if it matters but I think it would cause some issues if you wanted to use them withAnonymousParty
?The holder parameter for
FungibleToken
andNonFungibleToken
isAbstractParty
:Whereas the
heldBy
function in the new builders isParty
:The text was updated successfully, but these errors were encountered: