Пост
Поделитесь своими знаниями.
How to check if a specific function exists within a Move module at a given address?
I'm trying to figure out how to check if a specific function exists within a Move module at a given address in Move smart contract language, and if it does, call that function dynamically. Here's my scenario: I have a vector or array of addresses, and I need to determine whether a particular address has a specific function. If it does, I want to call that function dynamically.
Is there a way to achieve this in Move? I've been struggling to find a solution, and any guidance would be greatly appreciated.
- Move CLI
- Smart Contract
Ответы
1Resolving dependencies at runtime, specifically checking for the existence of a function within a module dynamically, is not possible in Move. However, you can determine the existence of a specific resource at a particular address using exists
If you have any questions, you can ask them here;
Знаете ответ?
Пожалуйста, войдите в систему и поделитесь им.