For example, struct Element has generic type params T0 and T1, and T0 T1 is used for the type of the struct fields.
{
name: "Element",
is_native: false,
abilities: ["copy", "drop", "store"],
generic_type_params: [
{
constraints: [],
},
{
constraints: [],
},
],
fields: [
{
name: "key",
type: "T0",
},
{
name: "value",
type: "T1",
},
],
},
Currently Surf cannot inference those fields type correctly.
0x1::simple_map::SimpleMap<0x1::string::String, 0xc6bc659f1649553c1a3fa05d9727433dc03843baac29473c817d06d39e7621ba::farming::Reward>
For example, struct
Elementhas generic type paramsT0andT1, andT0T1is used for the type of the struct fields.Currently Surf cannot inference those fields type correctly.
0x1::simple_map::SimpleMap<0x1::string::String, 0xc6bc659f1649553c1a3fa05d9727433dc03843baac29473c817d06d39e7621ba::farming::Reward>