implicit final class interface ContractId syntax[I] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- interface ContractId syntax
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new interface ContractId syntax(self: ContractId[I])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any
- def unsafeToTemplate[T](implicit ev: Implements[T, I]): ContractId[T]
Convert an interface contract ID to a template contract ID.
Convert an interface contract ID to a template contract ID. Sometimes this is needed if you got an interface contract ID from a choice, but you need to assert that the contract ID is of a particular template so that you can exercise contracts on it.
This checks at compile-time that
T
is in fact a template that implements interfaceI
, but it does not check that the specific contract ID is actually associated withT
on the ledger, hence theunsafe
in the name.- Annotations
- @nowarn()