File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/cw-schema-codegen/src/rust Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,18 @@ fn expand_node_name<'a>(
40
40
}
41
41
cw_schema:: NodeType :: Enum { .. } => node. name . as_ref ( ) . into ( ) ,
42
42
43
- cw_schema:: NodeType :: Decimal { precision, signed } => todo ! ( ) ,
43
+ cw_schema:: NodeType :: Decimal { precision : _, signed : _ } => {
44
+ // ToDo: Actually use a decimal type here
45
+ "String" . into ( )
46
+ }
44
47
cw_schema:: NodeType :: Address => "cosmrs::AccountId" . into ( ) ,
45
48
cw_schema:: NodeType :: Checksum => "cosmrs::tendermint::Hash" . into ( ) ,
46
- cw_schema:: NodeType :: HexBinary => todo ! ( ) ,
49
+ cw_schema:: NodeType :: HexBinary => {
50
+ // ToDo: Actually use a hex-encoded binary type here
51
+ "String" . into ( )
52
+ } ,
47
53
cw_schema:: NodeType :: Timestamp => "cosmrs::tendermint::Time" . into ( ) ,
48
- cw_schema:: NodeType :: Unit => Cow :: Borrowed ( "()" ) ,
54
+ cw_schema:: NodeType :: Unit => "()" . into ( ) ,
49
55
}
50
56
}
51
57
You can’t perform that action at this time.
0 commit comments