Check if an account is the owner of a smart assembly.
Compares the assembly's owner address with the provided account address to determine ownership.
The assembly object to check ownership of
Optional
The account address to check against
True if the account owns the assembly, false otherwise
const { assembly } = useSmartObject();const { currentAccount } = useConnection();if (isOwner(assembly, currentAccount?.address)) { // Show owner-only actions} Copy
const { assembly } = useSmartObject();const { currentAccount } = useConnection();if (isOwner(assembly, currentAccount?.address)) { // Show owner-only actions}
Check if an account is the owner of a smart assembly.
Compares the assembly's owner address with the provided account address to determine ownership.