Skip to content

Commit

Permalink
fix: Rename BalancerSwapAdapter.evm.runtime to BalancerV2SwapAdapter.…
Browse files Browse the repository at this point in the history
…evm.runtime

--- don't change below this line ---
ENG-3850 <#DTT#>
  • Loading branch information
dianacarvalho1 committed Dec 11, 2024
1 parent a13f6b1 commit d091e60
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/evm/protocol/vm/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ mod tests {
EVMPoolStateBuilder::new(pool_id, tokens, balances, block)
.balance_owner(Address::from_str("0xBA12222222228d8Ba445958a75a0704d566BF2C8").unwrap())
.adapter_contract_path(PathBuf::from(
"src/evm/protocol/vm/assets/BalancerSwapAdapter.evm.runtime".to_string(),
"src/evm/protocol/vm/assets/BalancerV2SwapAdapter.evm.runtime".to_string(),
))
.stateless_contracts(stateless_contracts)
.build(SHARED_TYCHO_DB.clone())
Expand Down
2 changes: 1 addition & 1 deletion src/evm/protocol/vm/tycho_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ mod tests {

ProtocolComponent {
id: "0x4626d81b3a1711beb79f4cecff2413886d461677000200000000000000000011".to_string(),
protocol_system: "vm:balancer".to_string(),
protocol_system: "vm:balancer_v2".to_string(),
protocol_type_name: "balancer_v2_pool".to_string(),
chain: Chain::Ethereum,
tokens,
Expand Down
2 changes: 1 addition & 1 deletion src/evm/protocol/vm/tycho_simulation_contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ mod tests {
let engine = create_mock_engine();
TychoSimulationContract::new_swap_adapter(
address,
&PathBuf::from("src/evm/protocol/vm/assets/BalancerSwapAdapter.evm.runtime"),
&PathBuf::from("src/evm/protocol/vm/assets/BalancerV2SwapAdapter.evm.runtime"),
engine,
)
.unwrap()
Expand Down
4 changes: 2 additions & 2 deletions tycho_simulation_py/python/test/test_third_party_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def Token(name: str) -> EthereumToken:

@pytest.fixture()
def adapter_contract_path(asset_dir) -> str:
return str(asset_dir / "BalancerSwapAdapter.evm.runtime")
return str(asset_dir / "BalancerV2SwapAdapter.evm.runtime")


@pytest.fixture(autouse=True, scope="module")
Expand Down Expand Up @@ -190,7 +190,7 @@ def test_get_amount_out_sell_limit(pool_state):

def test_stateless_contract_pool(asset_dir):
with patch(
"tycho_simulation_py.evm.pool_state.get_code_for_address"
"tycho_simulation_py.evm.pool_state.get_code_for_address"
) as mock_get_code:
mock_get_code.return_value = bytes.fromhex("363d")

Expand Down

0 comments on commit d091e60

Please sign in to comment.