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
I'm encountering a DEPENDENCY_LIMIT_REACHED error when calling functions of an on-chain contract. This occurs in my DEX aggregator implementation, which naturally requires multiple dependencies due to its aggregation nature.
Specific failing example path: USDT -[Pontem]-> AMA -[Thala]-> APT
After reviewing the aptos-core code, I found that this error can be triggered by either:
Exceeding the number of dependencies limit
Exceeding the total dependency size in bytes
What are the exact limit values for:
num_dependencies: NumModules
total_dependency_size: NumBytes
How can I debug this issue? Specifically:
Is there a way to check the exact total_dependency_size for my transaction?
Are there tools or methods to analyze dependency usage?
Additional context
I've searched through the documentation but couldn't find detailed information about these limits and their implementation. Any detailed explanation or pointers to relevant documentation would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
fgfm999
changed the title
[Bug]
[Bug] DEPENDENCY_LIMIT_REACHED when calling on-chain funciton
Dec 30, 2024
fgfm999
changed the title
[Bug] DEPENDENCY_LIMIT_REACHED when calling on-chain funciton
[Bug] DEPENDENCY_LIMIT_REACHED when calling on-chain function
Dec 30, 2024
🐛 Bug
I'm not sure whether this is bug.
I'm encountering a
DEPENDENCY_LIMIT_REACHED
error when calling functions of an on-chain contract. This occurs in my DEX aggregator implementation, which naturally requires multiple dependencies due to its aggregation nature.To reproduce
USDT -[Pontem]-> AMA -[Thala]-> APT
After reviewing the aptos-core code, I found that this error can be triggered by either:
Exceeding the number of dependencies limit
Exceeding the total dependency size in bytes
What are the exact limit values for:
num_dependencies: NumModules
total_dependency_size: NumBytes
How can I debug this issue? Specifically:
total_dependency_size
for my transaction?Additional context
I've searched through the documentation but couldn't find detailed information about these limits and their implementation. Any detailed explanation or pointers to relevant documentation would be greatly appreciated.
The text was updated successfully, but these errors were encountered: