Skip to content

Commit

Permalink
Add VM error code
Browse files Browse the repository at this point in the history
Add VM error code `FAILED_TO_DESERIALIZE_ARGUMENT`
  • Loading branch information
sausagee committed Nov 7, 2024
1 parent d5145ba commit b4d1382
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/nextra/pages/en/build/smart-contracts/error-codes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ sequence number and try again.
| RESOURCE_ALREADY_EXISTS | We tried to create a resource under an account where that resource already exists. | Check the contract and possibly change it to handle resources that already exist |
| UNKNOWN_STATUS | A reserved status to represent an unknown vm status. This is std::u64::MAX, but we can't pattern match on that, so put the hardcoded value in. | N/A |
| LINKER_ERROR | This may be due to the function has not been published on chain or by trying to call an invalid function as the result of either an incorrect account address, module name, or function name. This might not happen locally if the sources are available locally but have yet to be published on-chain. | There are many reasons, but you should check your account addresses, module names, and function names to determine that they're correct and published |
| FAILED_TO_DESERIALIZE_ARGUMENT | This error in deserializing argument is triggered by one of the following validation checks. 1) It exceeds the limit on the number of nested or unpacked structs (including in a vector). The maximum overall args equals to depth * number of args. The max depth is currently 10. 2) The nested struct exceeds the aforementioned max depth. 3) The serialized arguments to constructor contained extra data. 4) It was derializing utf8 but struct_constructors are disabled. 5) The string argument is too long. 6) BCS deserialization fails for utf8 6) BCS deserialization fails for utf8 6) BCS deserialization fails for utf8 6) BCS deserialization failed for utf8. | N/A |

## Move Standard Library (stdlib)

Expand Down

0 comments on commit b4d1382

Please sign in to comment.