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
Copy file name to clipboardExpand all lines: src/common_issues.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,11 @@
3
3
### `RecursionError: maximum recursion depth exceeded`
4
4
5
5
This may happen when your contract is too large. Try setting the flag `--recursion-limit` to something high
6
-
like 2000. If it does not go away even with values above i.e. 10000, please [open an issue](https://github.com/OpShin/opshin/issues/new/choose).
6
+
like 2000. If it does not go away even with values above i.e. 10000, please [open an issue](https://github.com/OpShin/opshin/issues/new/choose).
7
+
8
+
### The contract is too large to submit in a transaction
9
+
10
+
OpShin provides various optimizations to decrease contract size. Most of these are already activated by default but a number of [powerful optimizations can be added](https://book.opshin.dev/smart_contract_tour/advanced.html#compiler-flags):
11
+
12
+
-`-fdeduplicate` is a powerful optimization that can reduce contract size significantly. It deduplicates low level terms, but is expensive, which is why it is disabled by default.
13
+
-`-O3` enables a range of powerful optimizations (including `-fdeduplicate`) but also removes all error traces and print statements. This significantly reduces contract size but makes debugging much more difficult.
0 commit comments