From 89e62e554ac2d1ca9feb03fa783cad21ade59701 Mon Sep 17 00:00:00 2001 From: Robin Salen Date: Thu, 3 Aug 2023 11:58:49 -0400 Subject: [PATCH] Use Keccak config in simple tests --- evm/tests/add11_yml.rs | 4 ++-- evm/tests/basic_smart_contract.rs | 4 ++-- evm/tests/self_balance_gas_cost.rs | 4 ++-- evm/tests/simple_transfer.rs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/evm/tests/add11_yml.rs b/evm/tests/add11_yml.rs index f9428381..29ec0ece 100644 --- a/evm/tests/add11_yml.rs +++ b/evm/tests/add11_yml.rs @@ -8,7 +8,7 @@ use ethereum_types::Address; use hex_literal::hex; use keccak_hash::keccak; use plonky2::field::goldilocks_field::GoldilocksField; -use plonky2::plonk::config::PoseidonGoldilocksConfig; +use plonky2::plonk::config::KeccakGoldilocksConfig; use plonky2::util::timing::TimingTree; use plonky2_evm::all_stark::AllStark; use plonky2_evm::config::StarkConfig; @@ -21,7 +21,7 @@ use plonky2_evm::Node; type F = GoldilocksField; const D: usize = 2; -type C = PoseidonGoldilocksConfig; +type C = KeccakGoldilocksConfig; /// The `add11_yml` test case from https://github.com/ethereum/tests #[test] diff --git a/evm/tests/basic_smart_contract.rs b/evm/tests/basic_smart_contract.rs index 5b2958df..60cb9878 100644 --- a/evm/tests/basic_smart_contract.rs +++ b/evm/tests/basic_smart_contract.rs @@ -8,7 +8,7 @@ use ethereum_types::{Address, U256}; use hex_literal::hex; use keccak_hash::keccak; use plonky2::field::goldilocks_field::GoldilocksField; -use plonky2::plonk::config::PoseidonGoldilocksConfig; +use plonky2::plonk::config::KeccakGoldilocksConfig; use plonky2::util::timing::TimingTree; use plonky2_evm::all_stark::AllStark; use plonky2_evm::config::StarkConfig; @@ -22,7 +22,7 @@ use plonky2_evm::Node; type F = GoldilocksField; const D: usize = 2; -type C = PoseidonGoldilocksConfig; +type C = KeccakGoldilocksConfig; /// Test a simple token transfer to a new address. #[test] diff --git a/evm/tests/self_balance_gas_cost.rs b/evm/tests/self_balance_gas_cost.rs index 4df05691..ddf9a2a4 100644 --- a/evm/tests/self_balance_gas_cost.rs +++ b/evm/tests/self_balance_gas_cost.rs @@ -9,7 +9,7 @@ use ethereum_types::Address; use hex_literal::hex; use keccak_hash::keccak; use plonky2::field::goldilocks_field::GoldilocksField; -use plonky2::plonk::config::PoseidonGoldilocksConfig; +use plonky2::plonk::config::KeccakGoldilocksConfig; use plonky2::util::timing::TimingTree; use plonky2_evm::all_stark::AllStark; use plonky2_evm::config::StarkConfig; @@ -22,7 +22,7 @@ use plonky2_evm::Node; type F = GoldilocksField; const D: usize = 2; -type C = PoseidonGoldilocksConfig; +type C = KeccakGoldilocksConfig; /// The `selfBalanceGasCost` test case from https://github.com/ethereum/tests #[test] diff --git a/evm/tests/simple_transfer.rs b/evm/tests/simple_transfer.rs index 80c6783d..3fae88b2 100644 --- a/evm/tests/simple_transfer.rs +++ b/evm/tests/simple_transfer.rs @@ -8,7 +8,7 @@ use ethereum_types::{Address, U256}; use hex_literal::hex; use keccak_hash::keccak; use plonky2::field::goldilocks_field::GoldilocksField; -use plonky2::plonk::config::PoseidonGoldilocksConfig; +use plonky2::plonk::config::KeccakGoldilocksConfig; use plonky2::util::timing::TimingTree; use plonky2_evm::all_stark::AllStark; use plonky2_evm::config::StarkConfig; @@ -21,7 +21,7 @@ use plonky2_evm::Node; type F = GoldilocksField; const D: usize = 2; -type C = PoseidonGoldilocksConfig; +type C = KeccakGoldilocksConfig; /// Test a simple token transfer to a new address. #[test]