mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-15 06:51:07 +00:00
fix: exclude EVM bytecode from production solc requests (#338)
This is to address issue #320 ## Introduced changes - Added new_required_for_tests() method that includes EVM bytecode flags - Modified new_required() to exclude evm.bytecode and evm.deployedBytecode - Updated test utilities to explicitly request EVM bytecode when needed Signed-off-by: 0xf333 <0x333@tuta.io>
This commit is contained in:
@@ -29,6 +29,14 @@ impl Selection {
|
||||
}
|
||||
}
|
||||
|
||||
/// Creates the selection required for test compilation (includes EVM bytecode).
|
||||
pub fn new_required_for_tests() -> Self {
|
||||
Self {
|
||||
all: Some(FileSelection::new_required_for_tests()),
|
||||
files: BTreeMap::new(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Extends the user's output selection with flag required by our compilation process.
|
||||
pub fn extend_with_required(&mut self) -> &mut Self {
|
||||
self.all
|
||||
|
||||
Reference in New Issue
Block a user