You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let hex_str = "010000000001001daf08e5e3799cbc6096a90c2361e43220325418f377620a7a73d6bece18322679f6ada9725d9081743805efb8bccecd51098f1d76f34cba8b835fae643bbd9c000000000100000000000100000000000000000000000000000000000000000000000000000000000000110000000000000001005054474d010600027e5f4552091a69125d5dfcb7b8c2659029395bdf";
198
-
let bytes = Vec::from_hex(hex_str).expect("Invalid hex string");
199
-
200
-
let result = pyth_contract
201
-
.sender(alice)
202
-
.execute_governance_instruction(bytes.clone());
203
-
if result.is_err() {
204
-
println!(
205
-
"SetWormholeAddress Error: {:?}",
206
-
result.as_ref().unwrap_err()
207
-
);
208
-
}
209
-
assert!(result.is_ok());
210
-
211
-
let result2 = pyth_contract
212
-
.sender(alice)
213
-
.execute_governance_instruction(bytes.clone());
214
-
assert!(result2.is_err(), "Second execution should fail due to sequence number check");
197
+
let guardians = vec![address!("0x7e5f4552091a69125d5dfcb7b8c2659029395bdf")];
let hex_str = format!("010000000001001daf08e5e3799cbc6096a90c2361e43220325418f377620a7a73d6bece18322679f6ada9725d9081743805efb8bccecd51098f1d76f34cba8b835fae643bbd9c000000000100000000000100000000000000000000000000000000000000000000000000000000000000110000000000000001005054474d01060002{:040x}", wormhole_contract_2.address());
214
+
let bytes = Vec::from_hex(&hex_str).expect("Invalid hex string");
0 commit comments