code gen getContractId() support everywhere
code gen