Clarity theorytheory 0/50 · 0%
Traits · medium

28. Using Traits: use-trait

Importing trait definitions.

The `use-trait` keyword allows a contract to refer to a trait defined in another contract, often used for dynamic contract calls.

clarity
(use-trait nft-trait 'SP2P...nft-trait-contract.nft-trait)

Check your understanding

  1. 1. Why use use-trait?