Skip to content

Commit 47d535a

Browse files
committed
removed extraneous parameters
1 parent 55658af commit 47d535a

File tree

2 files changed

+8
-14
lines changed
  • target_chains/stylus/contracts

2 files changed

+8
-14
lines changed

target_chains/stylus/contracts/pyth-receiver/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ impl PythReceiver {
197197
min_publish_time,
198198
max_publish_time,
199199
false, // check_uniqueness
200-
false, // check_update_data_is_minimal
201-
true, // store_updates_if_fresh
202200
)?;
203201

204202
for (price_id, price_return) in price_pairs.clone() {
@@ -281,8 +279,6 @@ impl PythReceiver {
281279
min_allowed_publish_time,
282280
max_allowed_publish_time,
283281
check_uniqueness,
284-
check_update_data_is_minimal,
285-
store_updates_if_fresh,
286282
)?;
287283
}
288284

@@ -311,8 +307,6 @@ impl PythReceiver {
311307
min_allowed_publish_time: u64,
312308
max_allowed_publish_time: u64,
313309
check_uniqueness: bool,
314-
check_update_data_is_minimal: bool,
315-
store_updates_if_fresh: bool,
316310
) -> Result<Vec<([u8; 32], PriceInfoReturn)>, PythReceiverError> {
317311
let update_data_array: &[u8] = &update_data;
318312
// Check the first 4 bytes of the update_data_array for the magic header

target_chains/stylus/contracts/wormhole/src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ mod tests {
500500
use core::str::FromStr;
501501
use k256::ecdsa::SigningKey;
502502
use stylus_sdk::alloy_primitives::keccak256;
503-
503+
504504
#[cfg(test)]
505505
use base64::engine::general_purpose;
506506
#[cfg(test)]
@@ -543,7 +543,7 @@ mod tests {
543543
0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 0x40,
544544
]
545545
}
546-
546+
547547
#[cfg(test)]
548548
fn current_guardians() -> Vec<Address> {
549549
vec![
@@ -634,7 +634,7 @@ mod tests {
634634
contract.initialize(guardians, 1, CHAIN_ID, GOVERNANCE_CHAIN_ID, governance_contract).unwrap();
635635
contract
636636
}
637-
637+
638638
#[cfg(test)]
639639
fn deploy_with_current_mainnet_guardians() -> WormholeContract {
640640
let mut contract = WormholeContract::default();
@@ -802,7 +802,7 @@ mod tests {
802802
#[motsu::test]
803803
fn test_verification_multiple_guardian_sets() {
804804
let mut contract = deploy_with_current_mainnet_guardians();
805-
805+
806806
let store_result = contract.store_gs(4, current_guardians(), 0);
807807
if let Err(_) = store_result {
808808
panic!("Error deploying multiple guardian sets");
@@ -816,7 +816,7 @@ mod tests {
816816
#[motsu::test]
817817
fn test_verification_incorrect_guardian_set() {
818818
let mut contract = deploy_with_current_mainnet_guardians();
819-
819+
820820
let store_result = contract.store_gs(4, mock_guardian_set13(), 0);
821821
if let Err(_) = store_result {
822822
panic!("Error deploying guardian set");
@@ -1147,7 +1147,7 @@ mod tests {
11471147
let mut contract = WormholeContract::default();
11481148
let guardians = current_guardians();
11491149
let governance_contract = Address::from_slice(&GOVERNANCE_CONTRACT.to_be_bytes::<32>()[12..32]);
1150-
1150+
11511151
let result = contract.initialize(guardians.clone(), 4, CHAIN_ID, GOVERNANCE_CHAIN_ID, governance_contract);
11521152
assert!(result.is_ok(), "Contract initialization should succeed");
11531153
}
@@ -1222,5 +1222,5 @@ mod tests {
12221222
assert!(result2.is_ok());
12231223
}
12241224

1225-
1226-
}
1225+
1226+
}

0 commit comments

Comments
 (0)