Skip to content

Commit

Permalink
test: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x committed Dec 12, 2023
1 parent 20f998d commit 8fa2fea
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,21 +336,21 @@ 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 {
key: "method".to_string(),
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 {
Expand All @@ -362,18 +362,19 @@ 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 {
key: "method".to_string(),
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(),
Expand All @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8fa2fea

Please sign in to comment.