magicblock-labs / magicblock-labs/bolt
[Bug] Re-ordering elements when definining a system will fail to compile
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 64
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When changing the order of elements between: `#[system_input]`, `#[arguments]` and `execute` inside of a `#[system]` macro, it will fail to compile with a confusing error message.
**To Reproduce**
Simple way to reproduce is to put the arguments struct before the `execute` function for example.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure in a #[system] definition, moving the #[arguments] struct before the execute function while keeping #[system_input] in scope. Compare compilation with the original ordering and the reordered form; done means the reordered definition compiles or reports a clear, actionable error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100