Skip to content

[Suggestion] Re-export StructTag from move-core-types in sui-types #23553

@macaujack

Description

@macaujack

When we create a PTB (using ProgrammableTransactionBuilder), sometimes we need to fill the type parameters, which is of type Vec<TypeTag>.

TypeTag comes from move-core-types crate, and is re-exported in sui-types, which could be imported by use sui_sdk::types. This is convenient. However, TypeTag may wrap a StructTag, and StructTag is not re-exported. So I have to add move-core-types in my Cargo.toml.

It's kinda weird TypeTag is re-exported while StructTag isn't...

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions