diff --git a/packages/bindings-test/src/posts/mod.rs b/packages/bindings-test/src/posts/mod.rs index 0fe147f7..99e6e11d 100644 --- a/packages/bindings-test/src/posts/mod.rs +++ b/packages/bindings-test/src/posts/mod.rs @@ -12,7 +12,8 @@ use desmos_bindings::posts::types::{ Entities, Post, QuerySubspacePostsRequest, QuerySubspacePostsResponse, ReplySetting, Url, }; -pub fn create_sample_post(subspace_id: u64, contract_address: &str) -> Post { +/// Creates a post inside the given subspace for interaction testing +pub fn create_test_post(subspace_id: u64, contract_address: &str) -> Post { let desmos_cli = DesmosCli::default(); // Create a post diff --git a/packages/bindings-test/src/posts/msg.rs b/packages/bindings-test/src/posts/msg.rs index ebfc9e3f..30d5f34c 100644 --- a/packages/bindings-test/src/posts/msg.rs +++ b/packages/bindings-test/src/posts/msg.rs @@ -5,7 +5,7 @@ mod test { TEST_DELETABLE_ATTACHMENT_ID, TEST_POLL_ID, TEST_SUBSPACE, TEST_SUBSPACE_DELETABLE_POST_ID, TEST_SUBSPACE_EDITABLE_POST_ID, }; - use crate::posts::create_sample_post; + use crate::posts::create_test_post; use chrono::DateTime; use cosmwasm_std::Addr; @@ -230,7 +230,7 @@ mod test { .last() .unwrap() .clone(); - let post = create_sample_post(TEST_SUBSPACE, &contract_address); + let post = create_test_post(TEST_SUBSPACE, &contract_address); let move_post_msg = PostsMsg::move_post( TEST_SUBSPACE, @@ -251,7 +251,7 @@ mod test { let contract_address = desmos_cli.get_contract_by_code(1, 0); let receiver_contract_address = desmos_cli.get_contract_by_code(1, 1); - let post = create_sample_post(TEST_SUBSPACE, &contract_address); + let post = create_test_post(TEST_SUBSPACE, &contract_address); let request_post_owner_transfer_msg = PostsMsg::request_post_owner_transfer( TEST_SUBSPACE, post.id, @@ -283,7 +283,7 @@ mod test { let receiver_contract_address = desmos_cli.get_contract_by_code(1, 1); // Create a post owner transfer request to receiver - let post = create_sample_post(TEST_SUBSPACE, &contract_address); + let post = create_test_post(TEST_SUBSPACE, &contract_address); let request_post_owner_transfer_msg = PostsMsg::request_post_owner_transfer( TEST_SUBSPACE, post.id, @@ -315,7 +315,7 @@ mod test { let receiver_contract_address = desmos_cli.get_contract_by_code(1, 1); // Create a post owner transfer request to receiver - let post = create_sample_post(TEST_SUBSPACE, &contract_address); + let post = create_test_post(TEST_SUBSPACE, &contract_address); let request_post_owner_transfer_msg = PostsMsg::request_post_owner_transfer( TEST_SUBSPACE, post.id, diff --git a/packages/bindings-test/src/posts/query.rs b/packages/bindings-test/src/posts/query.rs index 77753f0c..80a37b25 100644 --- a/packages/bindings-test/src/posts/query.rs +++ b/packages/bindings-test/src/posts/query.rs @@ -2,7 +2,7 @@ mod test { use crate::chain_communication::DesmosCli; use crate::consts::{TEST_POLL_ID, TEST_SUBSPACE, TEST_SUBSPACE_EDITABLE_POST_ID}; - use crate::posts::create_sample_post; + use crate::posts::create_test_post; use chrono::DateTime; use cosmwasm_std::Addr; use desmos_bindings::posts::msg::PostsMsg; @@ -242,7 +242,7 @@ mod test { let contract_address = desmos_cli.get_contract_by_code(1, 0); let receiver_contract_address = desmos_cli.get_contract_by_code(1, 1); - let post = create_sample_post(TEST_SUBSPACE, &contract_address); + let post = create_test_post(TEST_SUBSPACE, &contract_address); desmos_cli .execute_contract( &contract_address,