From ec0e02591e512956edc59b6a97f3a77740594c94 Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Tue, 29 Aug 2023 20:33:23 +0800 Subject: [PATCH] fix: change array into vector --- packages/bindings-test/src/posts/msg.rs | 12 ++++++------ packages/bindings-test/src/posts/query.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bindings-test/src/posts/msg.rs b/packages/bindings-test/src/posts/msg.rs index 30d5f34c..38a534f8 100644 --- a/packages/bindings-test/src/posts/msg.rs +++ b/packages/bindings-test/src/posts/msg.rs @@ -241,7 +241,7 @@ mod test { ); desmos_cli - .execute_contract(&contract_address, [move_post_msg.into()]) + .execute_contract(&contract_address, vec![move_post_msg.into()]) .assert_success() } @@ -268,7 +268,7 @@ mod test { desmos_cli .execute_contract( &contract_address, - [ + vec![ request_post_owner_transfer_msg.into(), cancel_post_owner_transfer_request_msg.into(), ], @@ -291,7 +291,7 @@ mod test { Addr::unchecked(&contract_address), ); desmos_cli - .execute_contract(&contract_address, [request_post_owner_transfer_msg.into()]) + .execute_contract(&contract_address, vec![request_post_owner_transfer_msg.into()]) .assert_success(); // Receiver accepts a post owner transfer request @@ -303,7 +303,7 @@ mod test { desmos_cli .execute_contract( &receiver_contract_address, - [accept_post_owner_transfer_request_msg.into()], + vec![accept_post_owner_transfer_request_msg.into()], ) .assert_success() } @@ -323,7 +323,7 @@ mod test { Addr::unchecked(&contract_address), ); desmos_cli - .execute_contract(&contract_address, [request_post_owner_transfer_msg.into()]) + .execute_contract(&contract_address, vec![request_post_owner_transfer_msg.into()]) .assert_success(); // Receiver refuses a post owner transfer request @@ -335,7 +335,7 @@ mod test { desmos_cli .execute_contract( &receiver_contract_address, - [refuse_post_owner_transfer_request_msg.into()], + vec![refuse_post_owner_transfer_request_msg.into()], ) .assert_success() } diff --git a/packages/bindings-test/src/posts/query.rs b/packages/bindings-test/src/posts/query.rs index 80a37b25..936968c9 100644 --- a/packages/bindings-test/src/posts/query.rs +++ b/packages/bindings-test/src/posts/query.rs @@ -246,7 +246,7 @@ mod test { desmos_cli .execute_contract( &contract_address, - [PostsMsg::request_post_owner_transfer( + vec![PostsMsg::request_post_owner_transfer( TEST_SUBSPACE, post.id, Addr::unchecked(&receiver_contract_address),