Skip to content

Commit 3e5b4bb

Browse files
authored
test(pythnet-sdk): add hardcoded expected pythtest accumulator sequence unit test (#846)
1 parent e7b6dab commit 3e5b4bb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pythnet/pythnet_sdk/src/lib.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ pub(crate) mod tests {
7979
200, 74, 124, 198, 226, 194, 215, 62, 43, 98, 207, 184, 167, 181, 175, 174, 254, 192,
8080
204, 37, 26, 45, 137, 21, 180, 83, 228, 241, 198, 180, 129, 67,
8181
];
82+
assert_eq!(
83+
pythtest_wormhole_pid_bytes,
84+
pythtest_wormhole_pid.to_bytes()
85+
);
86+
87+
let expected_pythtest_accumulator_sequence_addr =
88+
pubkey!("Ao4tQp1ouW9w73CE34npzSDjgPG5FGz8KmoSauzCwuh7");
8289
let (pythtest_accumulator_sequence_address, _) = Pubkey::find_program_address(
8390
&[b"Sequence", accumulator_emitter_address.as_ref()],
8491
&pythtest_wormhole_pid,
@@ -90,8 +97,8 @@ pub(crate) mod tests {
9097
];
9198

9299
assert_eq!(
93-
pythtest_wormhole_pid_bytes,
94-
pythtest_wormhole_pid.to_bytes()
100+
expected_pythtest_accumulator_sequence_addr,
101+
pythtest_accumulator_sequence_address
95102
);
96103

97104
assert_eq!(

0 commit comments

Comments
 (0)