Is below function can be called by a hacker after deploy

constructor() public
    test = true;

1 Answer 1


No. A constructor is special.

It is executed on deployment but the bytecode isn't deployed to the contract address, so it can't be run again.

Hope it helps.

Not the answer you're looking for? Browse other questions tagged or ask your own question.