Illegal assignmenet to component from type string

In reply to sunils:

the command for creating your Transaction object has only 1 Argument of type string. The string has to be the same as the object is named.
tr = trans::type_id::create(“tr”);