You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When autogenerating bindings for pallet structs that use primitive_types::H160 and primitive_types::H256 subxt codegen ends up using different libraries for H160 vs H256 in the generated code.
subxt generated code shows the following when running cargo expand:
H160: runtime_types::primitive_types::H160
H256: ::subxt::sp_core::H256
The fact that codegen uses primitive_types for H160 and sp_core for H256 is causing type conflicts. Would like for both to use sp_core instead.
The text was updated successfully, but these errors were encountered:
luketchang
changed the title
Autogenerated code uses different libraries for H160 and H256
Autogenerated code uses different libraries for H160 vsH256Aug 14, 2022
luketchang
changed the title
Autogenerated code uses different libraries for H160 vsH256
Autogenerated code uses different libraries for H160 vs H256Aug 14, 2022
When autogenerating bindings for pallet structs that use
primitive_types::H160
andprimitive_types::H256
subxt codegen ends up using different libraries forH160
vsH256
in the generated code.subxt
generated code shows the following when runningcargo expand
:runtime_types::primitive_types::H160
::subxt::sp_core::H256
The fact that codegen uses
primitive_types
forH160
andsp_core
forH256
is causing type conflicts. Would like for both to usesp_core
instead.The text was updated successfully, but these errors were encountered: