mouseless-eth / rusty-sando

Implementation of a competitive v2/v3 multi-meat MEV sandwich bot written using Rust and Huff.
MIT License
767 stars 256 forks source link

Contracts -> Tests failing #29

Closed praveenbm5 closed 1 year ago

praveenbm5 commented 1 year ago

forge test --rpc-url <your-rpc-url-here>

The above test as detailed in the contract/README is failing.

But when I change the test/sandwich.t.sol to not rely on HuffDeployer to deploy sandwich.huff and instead provide the address of sandwich.huff contract already deployed on chain then the tests pass without problems.

//sandwich = HuffDeployer.deploy("sandwich");
sandwich = <deployed sandwich.huff address>;

Not sure whats happening. Could be an issue in upsream Foundry project.

Opening this issue to document this problem and the interim solution.