File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed
packages/cw-schema-codegen Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,10 @@ 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 : _ } => {
43
+ cw_schema:: NodeType :: Decimal {
44
+ precision : _,
45
+ signed : _,
46
+ } => {
44
47
// ToDo: Actually use a decimal type here
45
48
"String" . into ( )
46
49
}
@@ -49,7 +52,7 @@ fn expand_node_name<'a>(
49
52
cw_schema:: NodeType :: HexBinary => {
50
53
// ToDo: Actually use a hex-encoded binary type here
51
54
"String" . into ( )
52
- } ,
55
+ }
53
56
cw_schema:: NodeType :: Timestamp => "cosmrs::tendermint::Time" . into ( ) ,
54
57
cw_schema:: NodeType :: Unit => "()" . into ( ) ,
55
58
}
Original file line number Diff line number Diff line change @@ -39,8 +39,14 @@ fn expand_node_name<'a>(
39
39
40
40
cw_schema:: NodeType :: Decimal { .. } => "z.string()" . into ( ) ,
41
41
cw_schema:: NodeType :: Address => "z.string()" . into ( ) ,
42
- cw_schema:: NodeType :: Checksum => todo ! ( ) ,
43
- cw_schema:: NodeType :: HexBinary => todo ! ( ) ,
42
+ cw_schema:: NodeType :: Checksum => {
43
+ // ToDo: Use actual checksum types
44
+ "z.string()" . into ( )
45
+ }
46
+ cw_schema:: NodeType :: HexBinary => {
47
+ // ToDo: Actually use a binary decoding hex type
48
+ "z.string()" . into ( )
49
+ }
44
50
cw_schema:: NodeType :: Timestamp => {
45
51
// ToDo: Replace with better type
46
52
"z.string()" . into ( )
Original file line number Diff line number Diff line change @@ -135,11 +135,11 @@ fn assert_validity() {
135
135
136
136
// make sure the dependencies are installed
137
137
let install_status = Command :: new ( "npm" )
138
- . arg ( "i" )
139
- . current_dir ( & e2e_dir)
140
- . status ( )
141
- . unwrap ( ) ;
142
- assert ! ( install_status. success( ) ) ;
138
+ . arg ( "i" )
139
+ . current_dir ( & e2e_dir)
140
+ . status ( )
141
+ . unwrap ( ) ;
142
+ assert ! ( install_status. success( ) ) ;
143
143
144
144
let random_data: [ u8 ; 255 ] = rand:: random ( ) ;
145
145
let mut unstructured = arbitrary:: Unstructured :: new ( & random_data) ;
You can’t perform that action at this time.
0 commit comments