Skip to content

Commit a998892

Browse files
tzakianTimothy Zakian
and
Timothy Zakian
authored
Update test to unbreak build (#22097)
## Description PR landed that merged cleanly, but broke the build as it was using an old version of `SuiMoveNormalizedStruct`. This updates the usage to unbreak the build. ## Test plan CI Co-authored-by: Timothy Zakian <timothyzakian@mac.lan>
1 parent 474ae75 commit a998892

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

crates/sui-json-rpc-types/src/unit_tests/rpc_types_tests.rs

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -161,20 +161,24 @@ fn test_move_type_serde() {
161161
SNT::Signer,
162162
SNT::Vector(Box::new(SNT::U8)),
163163
SNT::Struct {
164-
address: SUI_FRAMEWORK_ADDRESS.to_string(),
165-
module: "coin".to_owned(),
166-
name: "Coin".to_owned(),
167-
type_arguments: vec![SNT::Address],
164+
inner: Box::new(SM::SuiMoveNormalizedStructType {
165+
address: SUI_FRAMEWORK_ADDRESS.to_string(),
166+
module: "coin".to_owned(),
167+
name: "Coin".to_owned(),
168+
type_arguments: vec![SNT::Address],
169+
}),
168170
},
169171
SNT::Vector(Box::new(SNT::U16)),
170172
SNT::Vector(Box::new(SNT::Vector(Box::new(SNT::U8)))),
171173
SNT::TypeParameter(0),
172174
SNT::Reference(Box::new(SNT::U8)),
173175
SNT::MutableReference(Box::new(SNT::Struct {
174-
address: SUI_FRAMEWORK_ADDRESS.to_string(),
175-
module: "coin".to_owned(),
176-
name: "Coin".to_owned(),
177-
type_arguments: vec![SNT::Address],
176+
inner: Box::new(SM::SuiMoveNormalizedStructType {
177+
address: SUI_FRAMEWORK_ADDRESS.to_string(),
178+
module: "coin".to_owned(),
179+
name: "Coin".to_owned(),
180+
type_arguments: vec![SNT::Address],
181+
}),
178182
})),
179183
];
180184

@@ -219,10 +223,12 @@ fn test_move_type_serde() {
219223
vec![
220224
SNT::U32,
221225
SNT::Struct {
222-
address: SUI_FRAMEWORK_ADDRESS.to_string(),
223-
module: "coin".to_owned(),
224-
name: "Coin".to_owned(),
225-
type_arguments: vec![SNT::Address],
226+
inner: Box::new(SM::SuiMoveNormalizedStructType {
227+
address: SUI_FRAMEWORK_ADDRESS.to_string(),
228+
module: "coin".to_owned(),
229+
name: "Coin".to_owned(),
230+
type_arguments: vec![SNT::Address],
231+
}),
226232
},
227233
],
228234
),

0 commit comments

Comments
 (0)