use toCodeHash