From 8fa2feaba50d8da012c012eae4975e26b611f978 Mon Sep 17 00:00:00 2001 From: Kerber0x Date: Tue, 12 Dec 2023 15:56:37 +0000 Subject: [PATCH] test: fix broken test --- .../vault_router/src/execute/flash_loan.rs | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/contracts/liquidity_hub/vault-network/vault_router/src/execute/flash_loan.rs b/contracts/liquidity_hub/vault-network/vault_router/src/execute/flash_loan.rs index db3f84f5..2f807658 100644 --- a/contracts/liquidity_hub/vault-network/vault_router/src/execute/flash_loan.rs +++ b/contracts/liquidity_hub/vault-network/vault_router/src/execute/flash_loan.rs @@ -336,10 +336,10 @@ mod tests { // verify messages where executed in the right order let events = res.events; let expected_events = vec![ - Event::new("execute").add_attribute("_contract_addr", router_addr.to_string()), + Event::new("execute").add_attribute("_contract_address", router_addr.to_string()), Event::new("wasm").add_attributes(vec![ Attribute { - key: "_contract_addr".to_string(), + key: "_contract_address".to_string(), value: router_addr.to_string(), }, Attribute { @@ -347,10 +347,10 @@ mod tests { value: "flash_loan".to_string(), }, ]), - Event::new("execute").add_attribute("_contract_addr", native_vault_addr.to_string()), + Event::new("execute").add_attribute("_contract_address", native_vault_addr.to_string()), Event::new("wasm").add_attributes(vec![ Attribute { - key: "_contract_addr".to_string(), + key: "_contract_address".to_string(), value: native_vault_addr.to_string(), }, Attribute { @@ -362,10 +362,10 @@ mod tests { value: flashloan_amount.to_string(), }, ]), - Event::new("execute").add_attribute("_contract_addr", router_addr.to_string()), + Event::new("execute").add_attribute("_contract_address", router_addr.to_string()), Event::new("wasm").add_attributes(vec![ Attribute { - key: "_contract_addr".to_string(), + key: "_contract_address".to_string(), value: router_addr.to_string(), }, Attribute { @@ -373,7 +373,8 @@ mod tests { value: "next_loan".to_string(), }, ]), - Event::new("execute").add_attribute("_contract_addr", dummy_contract_addr.to_string()), + Event::new("execute") + .add_attribute("_contract_address", dummy_contract_addr.to_string()), Event::new("transfer").add_attributes(vec![ Attribute { key: "recipient".to_string(), @@ -388,10 +389,10 @@ mod tests { value: payload_amount.first().unwrap().to_string(), }, ]), - Event::new("execute").add_attribute("_contract_addr", router_addr.to_string()), + Event::new("execute").add_attribute("_contract_address", router_addr.to_string()), Event::new("wasm").add_attributes(vec![ Attribute { - key: "_contract_addr".to_string(), + key: "_contract_address".to_string(), value: router_addr.to_string(), }, Attribute { @@ -424,10 +425,10 @@ mod tests { .to_string(), }, ]), - Event::new("execute").add_attribute("_contract_addr", native_vault_addr.to_string()), + Event::new("execute").add_attribute("_contract_address", native_vault_addr.to_string()), Event::new("wasm").add_attributes(vec![ Attribute { - key: "_contract_addr".to_string(), + key: "_contract_address".to_string(), value: native_vault_addr.to_string(), }, Attribute {