Omniscia Transient Audit

TerminateContractTemplate Code Style Findings

TerminateContractTemplate Code Style Findings

TCT-01C: Redundant Default Value Assignment

TypeSeverityLocation
Gas OptimizationInformationalTerminateContractTemplate.sol:L8

Description:

The linked statement performs a zero-value assignment within the contract's constructor.

Example:

tsc-contracts/contracts/TerminateContractTemplate.sol
7constructor() public {
8 expiration = 0;
9}

Recommendation:

We advise the statement to be safely omitted from the codebase as variables within Solidity have a default value of 0 on declaration.

Alleviation:

The statement was safely omitted from the codebase.