Skip to content

Commit

Permalink
Debt: Clean foundry environment (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan authored Apr 7, 2024
1 parent 9c2eca0 commit b4151c8
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 16 deletions.
4 changes: 2 additions & 2 deletions aderyn_core/src/context/workspace_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2367,10 +2367,10 @@ mod context_tests {
"../tests/contract-playground/out/ExtendedInheritance.sol/ExtendedInheritance.json",
)?;
let inheritance_base = read_compiler_output(
"../tests/contract-playground/out/InheritanceBase.sol/InheritanceBase.0.8.24.json",
"../tests/contract-playground/out/InheritanceBase.sol/InheritanceBase.0.8.25.json",
)?;
let i_contract_inheritance = read_compiler_output(
"../tests/contract-playground/out/IContractInheritance.sol/IContractInheritance.0.8.24.json",
"../tests/contract-playground/out/IContractInheritance.sol/IContractInheritance.0.8.25.json",
)?;
extended_inheritance.ast.accept(&mut context)?;
inheritance_base.ast.accept(&mut context)?;
Expand Down
4 changes: 2 additions & 2 deletions aderyn_core/src/detect/low/push_0_opcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ mod unspecific_solidity_pragma_tests {
#[test]
fn test_push_0_opcode_detector_on_caret_0_8_13() {
let context =
load_contract("../tests/contract-playground/out/Counter.sol/Counter.0.8.24.json");
load_contract("../tests/contract-playground/out/Counter.sol/Counter.0.8.25.json");

let mut detector = super::PushZeroOpcodeDetector::default();
let found = detector.detect(&context).unwrap();
Expand All @@ -194,7 +194,7 @@ mod unspecific_solidity_pragma_tests {
#[test]
fn test_push_0_opcode_detector_on_greter_equal_0_8_0() {
let context = load_contract(
"../tests/contract-playground/out/IContractInheritance.sol/IContractInheritance.0.8.24.json",
"../tests/contract-playground/out/IContractInheritance.sol/IContractInheritance.0.8.25.json",
);

let mut detector = super::PushZeroOpcodeDetector::default();
Expand Down
2 changes: 1 addition & 1 deletion aderyn_core/src/detect/low/unspecific_solidity_pragma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ mod unspecific_solidity_pragma_tests {
#[test]
fn test_unspecific_solidity_pragma_detector() {
let context = load_contract(
"../tests/contract-playground/out/IContractInheritance.sol/IContractInheritance.0.8.24.json",
"../tests/contract-playground/out/IContractInheritance.sol/IContractInheritance.0.8.25.json",
);

let mut detector = UnspecificSolidityPragmaDetector::default();
Expand Down
2 changes: 1 addition & 1 deletion aderyn_core/src/detect/nc/useless_public_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ mod useless_public_function_tests {
#[test]
fn test_useless_public_functions() {
let context =
load_contract("../tests/contract-playground/out/Counter.sol/Counter.0.8.24.json");
load_contract("../tests/contract-playground/out/Counter.sol/Counter.0.8.25.json");

let mut detector = UselessPublicFunctionDetector::default();
// assert that the detector finds the public function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ mod identifiers_that_reference_functions_detector_tests {
#[test]
fn test_identifiers_that_reference_functions_detector() {
let context =
load_contract("../tests/contract-playground/out/Counter.sol/Counter.0.8.24.json");
load_contract("../tests/contract-playground/out/Counter.sol/Counter.0.8.25.json");
// from context, get the first item from function_definitions where name is "amountIn"
let function_definition = context
.function_definitions()
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion tests/contract-playground/out/Counter.sol/Counter.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b4151c8

Please sign in to comment.