Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Nov 22, 2024
1 parent 8dba106 commit 79b8383
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion crates/katana/rpc/rpc-types/src/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,18 @@ mod tests {
let rpc = RpcLegacyContractClass::try_from(class.clone()).unwrap();
let rt = LegacyContractClass::try_from(rpc).unwrap();

assert_eq!(class, rt);
assert_eq!(class.abi, rt.abi);
assert_eq!(class.entry_points_by_type, rt.entry_points_by_type);
assert_eq!(class.program.builtins, rt.program.builtins);
assert_eq!(class.program.compiler_version, rt.program.compiler_version);
assert_eq!(class.program.data, rt.program.data);
assert_eq!(class.program.hints, rt.program.hints);
assert_eq!(class.program.identifiers, rt.program.identifiers);
assert_eq!(class.program.main_scope, rt.program.main_scope);
assert_eq!(class.program.prime, rt.program.prime);
assert_eq!(class.program.reference_manager, rt.program.reference_manager);
// The debug info is stripped when converting to RPC format.
assert_eq!(serde_json::to_value::<Option<()>>(None).unwrap(), rt.program.debug_info);
}

#[test]
Expand Down

0 comments on commit 79b8383

Please sign in to comment.