Skip to content

Commit 7894e62

Browse files
BigtoCchipshort
authored andcommitted
fix(metadata): update test comments to reflect error handling for missing fields
1 parent ae4d13a commit 7894e62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/std/src/metadata.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ mod integration_tests {
234234

235235
#[test]
236236
fn query_denom_metadata_with_missing_fields_fails() {
237-
// Missing denom_units should be treated as default value (empty vec)
237+
// Missing denom_units should throw an error
238238
let json_missing_denom_units = json!({
239239
"description": "Test Token",
240240
"base": "utest",
@@ -249,7 +249,7 @@ mod integration_tests {
249249
serde_json::from_value(json_missing_denom_units);
250250
assert!(json_missing_denom_units_metadata.is_err());
251251

252-
// Missing aliases field should be treated as default (empty vec)
252+
// Missing aliases field should throw an error
253253
let json_missing_aliases = json!({
254254
"description": "Test Token",
255255
"denom_units": [

0 commit comments

Comments
 (0)