Skip to content

Commit

Permalink
remove dupe safe
Browse files Browse the repository at this point in the history
  • Loading branch information
faboweb committed Jan 4, 2024
1 parent 6cf69ab commit ef7aa76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
9 changes: 0 additions & 9 deletions contracts/staking/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,6 @@ pub fn execute_submit_batch(
}
);

// Update batch status
batch.update_status(
BatchStatus::Submitted,
Some(env.block.time.seconds() + config.unbonding_period),
);

// Move pending batch to batches
BATCHES.save(deps.storage, batch.id, &batch)?;

// Create new pending batch
let new_pending_batch = Batch::new(
batch.id + 1,
Expand Down
3 changes: 1 addition & 2 deletions contracts/staking/src/tests/query_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
mod query_tests {
// use serde_json;
use crate::contract::{execute, query};
use crate::helpers::derive_intermediate_sender;
use crate::msg::{
BatchResponse, BatchesResponse, ConfigResponse, ExecuteMsg, LiquidUnstakeRequestResponse,
QueryMsg, StateResponse,
};
use crate::query::query_pending_batch;
use crate::state::{State, CONFIG, STATE};
use crate::state::{CONFIG, STATE};
use crate::tests::test_helper::{
init, CELESTIAVAL1, CELESTIAVAL2, CHANNEL_ID, NATIVE_TOKEN, OSMO1, OSMO2, OSMO3,
};
Expand Down

0 comments on commit ef7aa76

Please sign in to comment.