You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In StateWrittenInstructionInjector we have an implicit requirement for injecting the ValidateStateSize call. It requires to access the Context which is a field in CSharpSmartContractAbstract, hence only is possible in a smart contract.
In CodeCheck, currently we do this check in InstructionInjectionValidator, which means the logics are scattered in two places. We need to fix it. One option is to remove StateWrittenInstructionInjector and put all logics in InstructionInjectionValidator.
The text was updated successfully, but these errors were encountered:
In
StateWrittenInstructionInjector
we have an implicit requirement for injecting theValidateStateSize
call. It requires to access theContext
which is a field inCSharpSmartContractAbstract
, hence only is possible in a smart contract.In CodeCheck, currently we do this check in
InstructionInjectionValidator
, which means the logics are scattered in two places. We need to fix it. One option is to removeStateWrittenInstructionInjector
and put all logics inInstructionInjectionValidator
.The text was updated successfully, but these errors were encountered: