Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-trunov committed Dec 15, 2022
1 parent 2355574 commit 5510d2f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 20 deletions.
6 changes: 4 additions & 2 deletions examples/rust_bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ mod tests {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
},
{
"inputs": [
Expand All @@ -58,7 +59,8 @@ mod tests {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion packages/fuels-core/src/code_gen/custom_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ mod tests {
"name": "",
"type": 26,
"typeArguments": []
}
},
"attributes": []
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion packages/fuels-core/src/code_gen/functions_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ mod tests {
"name": "",
"type": 26,
"typeArguments": []
}
},
"attributes": []
}
]
}
Expand Down
30 changes: 20 additions & 10 deletions packages/fuels/tests/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ async fn compile_bindings_from_inline_contract() -> Result<(), Error> {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -143,7 +144,8 @@ async fn compile_bindings_array_input() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -218,7 +220,8 @@ async fn compile_bindings_bool_array_input() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -281,7 +284,8 @@ async fn compile_bindings_byte_input() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -340,7 +344,8 @@ async fn compile_bindings_string_input() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -408,7 +413,8 @@ async fn compile_bindings_b256_input() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -475,7 +481,8 @@ async fn compile_bindings_evm_address_input() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -580,7 +587,8 @@ async fn compile_bindings_struct_input() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -683,7 +691,8 @@ async fn compile_bindings_nested_struct_input() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -776,7 +785,8 @@ async fn compile_bindings_enum_input() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions packages/fuels/tests/from_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ async fn create_struct_from_decoded_tokens() -> Result<(), Error> {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -173,7 +174,8 @@ async fn create_nested_struct_from_decoded_tokens() -> Result<(), Error> {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down
12 changes: 8 additions & 4 deletions packages/fuels/tests/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,8 @@ async fn strings_must_have_correct_length() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -798,7 +799,8 @@ async fn strings_must_have_all_ascii_chars() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -884,7 +886,8 @@ async fn strings_must_have_correct_length_custom_types() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down Expand Up @@ -970,7 +973,8 @@ async fn strings_must_have_all_ascii_chars_custom_types() {
"name": "",
"type": 0,
"typeArguments": null
}
},
"attributes": []
}
]
}
Expand Down

0 comments on commit 5510d2f

Please sign in to comment.