Skip to content

Commit

Permalink
Revert "xrpl-multisig-prover: create get_next_multisig_session_id que…
Browse files Browse the repository at this point in the history
…ry function"

This reverts commit 42bf6b3.
  • Loading branch information
k4m4 committed Apr 18, 2024
1 parent 280df17 commit b4da970
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion contracts/multisig-prover/src/test/mocks/multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
worker_address,
key_type,
)),
QueryMsg::GetNextSessionId => unimplemented!(),
}
}

Expand Down
1 change: 0 additions & 1 deletion contracts/multisig/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
deps.api.addr_validate(&worker_address)?,
key_type,
)?),
QueryMsg::GetNextSessionId => to_binary(&query::get_next_session_id(deps)?),
}
}

Expand Down
6 changes: 0 additions & 6 deletions contracts/multisig/src/contract/query.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::ops::Add;

use crate::{
key::{KeyType, PublicKey},
state::{load_pub_key, load_session_signatures},
Expand Down Expand Up @@ -36,7 +34,3 @@ pub fn get_public_key(deps: Deps, worker: Addr, key_type: KeyType) -> StdResult<
let raw = load_pub_key(deps.storage, worker, key_type)?;
Ok(PublicKey::try_from((key_type, raw)).expect("could not decode pub key"))
}

pub fn get_next_session_id(deps: Deps) -> StdResult<Uint64> {
Ok(SIGNING_SESSION_COUNTER.load(deps.storage)?.add(Uint64::one()))
}
3 changes: 0 additions & 3 deletions contracts/multisig/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ pub enum QueryMsg {
worker_address: String,
key_type: KeyType,
},

#[returns(Uint64)]
GetNextSessionId,
}

#[cw_serde]
Expand Down

0 comments on commit b4da970

Please sign in to comment.