Acton Version
acton 1.1.0 (9cf4d1f 2026-05-22)
Command
acton wrapper --all
What Happened
Contract.gen.tolk doesn't compile due to repeated struct names when using the same filename for contract definitions
Steps To Reproduce
- This kind of project layout:
[contracts.contract1]
display-name = "contract1"
src = "contracts/src/Contract1/contract.tolk"
depends = []
[contracts.contract2]
display-name = "Contract2"
src = "contracts/src/Contract2/contract.tolk"
depends = ["Contract1"]
- Run
acton wrapper --all.
Current solution
src = "contracts/src/Contract1/Contract1.tolk"
But this messes up the layout of the project.
Expected Behavior
display-name is used for the name.
Actual Output
The generated files both have structs that look like this:
struct Contract {
address: address
stateInit: ContractState? = null
}
This creates conflicts in the `Contract.gen.tolk`
Acton Logs
Doctor Report
Project Or Input Files
No response
Environment
No response
Acton Version
acton 1.1.0 (9cf4d1f 2026-05-22)
Command
acton wrapper --all
What Happened
Contract.gen.tolkdoesn't compile due to repeated struct names when using the same filename for contract definitionsSteps To Reproduce
acton wrapper --all.Current solution
But this messes up the layout of the project.
Expected Behavior
display-nameis used for the name.Actual Output
The generated files both have structs that look like this: struct Contract { address: address stateInit: ContractState? = null } This creates conflicts in the `Contract.gen.tolk`Acton Logs
Doctor Report
Project Or Input Files
No response
Environment
No response