Skip to content
  • Sasha Gryaznov's avatar
    [contracts] Add integrity checks by pallet hook (#12993) · 549637d9
    Sasha Gryaznov authored
    
    
    * integrity test for MaxCodeLen and CallStack::len()
    
    * integrity test for MaxDebugBufferLen
    
    * addressed review comments
    
    * fix append_debug_buffer()
    
    * ci fix
    
    * updated code_len_limit formula after further discussion
    
    * enlarged mem safe margin after discussion
    
    * +doc to Config trait associated types
    
    * Apply suggestions from code review
    
    Co-authored-by: default avatarAlexander Theißen <[email protected]>
    
    * more lil fixes from code review feedback
    
    * lowered max call depth to satisfy mem limits
    
    * fix node runtime pallet params to satisfy integrity check
    
    * fix max call depth value calc
    
    Co-authored-by: default avatarAlexander Theißen <[email protected]>
    549637d9