Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit c7a78bd

Browse files
committed
Fixup tests
1 parent b865e59 commit c7a78bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

token/program-2022/tests/serialization.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn serde_instruction_optional_nonzero_pubkeys_podbool() {
6464
};
6565

6666
let serialized = serde_json::to_string(&inst).unwrap();
67-
let serialized_expected = &"{{\"authority\":\"4uQeVj5tqViQh7yWWGStvkEG1Zmhx6uasJtWCJziofM\",\"autoApproveNewAccounts\":false,\"auditorElgamalPubkey\":\"ohdsJIKPEtvEhvKRszHlwUpAA55E63xY95Ck/uQMrVU=\"}}";
67+
let serialized_expected = &"{\"authority\":\"4uQeVj5tqViQh7yWWGStvkEG1Zmhx6uasJtWCJziofM\",\"autoApproveNewAccounts\":false,\"auditorElgamalPubkey\":\"ohdsJIKPEtvEhvKRszHlwUpAA55E63xY95Ck/uQMrVU=\"}";
6868
assert_eq!(&serialized, serialized_expected);
6969

7070
let deserialized =
@@ -90,7 +90,7 @@ fn serde_instruction_optional_nonzero_pubkeys_podbool_with_none() {
9090

9191
let serialized = serde_json::to_string(&inst).unwrap();
9292
let serialized_expected =
93-
&"{{\"authority\":null,\"autoApproveNewAccounts\":false,\"auditorElgamalPubkey\":null}}";
93+
&"{\"authority\":null,\"autoApproveNewAccounts\":false,\"auditorElgamalPubkey\":null}";
9494
assert_eq!(&serialized, serialized_expected);
9595

9696
let deserialized =
@@ -116,7 +116,7 @@ fn serde_instruction_decryptable_balance_podu64() {
116116
};
117117

118118
let serialized = serde_json::to_string(&inst).unwrap();
119-
let serialized_expected = &"{{\"decryptableZeroBalance\":\"OBZmMHBqOhkZ9MLZSYlJJhgaJBnr6kS1C1Kqo1nNcaA3ECOX\",\"maximumPendingBalanceCreditCounter\":1099,\"proofInstructionOffset\":100}}";
119+
let serialized_expected = &"{\"decryptableZeroBalance\":\"OBZmMHBqOhkZ9MLZSYlJJhgaJBnr6kS1C1Kqo1nNcaA3ECOX\",\"maximumPendingBalanceCreditCounter\":1099,\"proofInstructionOffset\":100}";
120120
assert_eq!(&serialized, serialized_expected);
121121

122122
let deserialized = serde_json::from_str::<

0 commit comments

Comments
 (0)