openzeppelin-transpiler icon indicating copy to clipboard operation
openzeppelin-transpiler copied to clipboard

Mark transpiled contract as abstract if an internal initializer was added.

Open Amxx opened this issue 1 year ago • 1 comments

When a non abstract contract has a constructor, and that constructor is "replaced" by an internal initializer in the transpiled version, then the transpiled version should not be deployable without the initializer being somehow exposed. Therefore, transpiled that have an internal initializer should be marked as abstract.

Amxx avatar Apr 08 '24 16:04 Amxx

see https://github.com/OpenZeppelin/openzeppelin-contracts/issues/5002

Amxx avatar Apr 08 '24 16:04 Amxx