From 57e8df58eb4a9035cd1d88daedee1c88f86442d2 Mon Sep 17 00:00:00 2001 From: Gaston Zanitti Date: Fri, 20 Oct 2023 17:35:20 -0300 Subject: [PATCH] Test moved from Default (Prague) to Cancun due to jumpdest deprecation --- etk-asm/src/ingest.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/etk-asm/src/ingest.rs b/etk-asm/src/ingest.rs index 52a7a4c2..15bb4049 100644 --- a/etk-asm/src/ingest.rs +++ b/etk-asm/src/ingest.rs @@ -244,7 +244,7 @@ impl Program { /// "#; /// /// let mut output = Vec::new(); -/// let mut ingest = Ingest::new(&mut output, HardFork::default()); +/// let mut ingest = Ingest::new(&mut output, HardFork::Cancun); /// ingest.ingest("./example.etk", &text)?; /// /// # let expected = hex!("6100035b"); @@ -406,7 +406,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); ingest.ingest(root, &text)?; assert_eq!(output, hex!("6001602a6002")); @@ -435,7 +435,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); ingest.ingest(root, &text)?; assert_eq!(output, hex!("60015b586000566002")); @@ -464,7 +464,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); let err = ingest.ingest(root, &text).unwrap_err(); assert_matches!( @@ -489,7 +489,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); ingest.ingest(root, &text)?; assert_eq!(output, hex!("6001deadbeef0102f66002")); @@ -513,7 +513,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); ingest.ingest(root, &text)?; assert_eq!(output, hex!("6001deadbeef0102f65b600960ff")); @@ -535,7 +535,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); ingest.ingest(root, &text)?; let expected = hex!("61001caaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa5b"); @@ -578,7 +578,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); ingest.ingest(root, &text)?; let expected = hex!("620000096200000e5b5b6008600e5b610008610009"); @@ -627,7 +627,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); ingest.ingest(root, &text)?; let expected = hex!("620000155b58600b5b5b61000b6100035b600360045b62000004"); @@ -648,7 +648,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); let root = std::env::current_exe().unwrap(); let err = ingest.ingest(root, &text).unwrap_err(); @@ -669,7 +669,7 @@ mod tests { ); let mut output = Vec::new(); - let mut ingest = Ingest::new(&mut output, HardFork::default()); + let mut ingest = Ingest::new(&mut output, HardFork::Cancun); let err = ingest.ingest(root, &text).unwrap_err(); assert_matches!(err, Error::RecursionLimit { .. });