Skip to content

Commit

Permalink
Remove nested call limit (#473)
Browse files Browse the repository at this point in the history
FuelVM now supports unlimited nested calls, so this limit is removed.

See  FuelLabs/fuel-vm#399
  • Loading branch information
Dentosal authored Mar 20, 2023
1 parent 70774ba commit f4eb0e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/protocol/tx_format/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@
| `MAX_STORAGE_SLOTS` | `uint16` | `255` | Maximum number of initial storage slots. |
| `MAX_WITNESSES` | `uint64` | `16` | Maximum number of witnesses. |
| `CHAIN_ID` | `uint64` | | A unique per-chain identifier. |
| `MAX_NESTED_CALLS` | `uint64` | `64` | Maximum number of nested contract calls. |
1 change: 0 additions & 1 deletion src/vm/instruction_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,6 @@ Panic if:
- Reading past `MEM[VM_MAX_RAM - 1]`
- In an external context, if `$rB > MEM[balanceOfStart(MEM[$rC, 32]), 8]`
- In an internal context, if `$rB` is greater than the balance of asset ID `MEM[$rC, 32]` of output with contract ID `MEM[$fp, 32]`
- If there would be more than `MAX_NESTED_CALLS` levels of nested calls

Register `$rA` is a memory address from which the following fields are set (word-aligned):

Expand Down

0 comments on commit f4eb0e8

Please # to comment.