Skip to content

Commit

Permalink
Use BytesN<32> for the Salt (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh authored May 15, 2023
1 parent c8c5cb1 commit 07f7524
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions soroban-sdk/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
//! # #[cfg(not(feature = "testutils"))]
//! # fn main() { }
//! ```
use crate::{env::internal::Env as _, unwrap::UnwrapInfallible, Bytes, BytesN, Env, IntoVal};
use crate::{env::internal::Env as _, unwrap::UnwrapInfallible, BytesN, Env, IntoVal};

/// Deployer provides access to deploying contracts.
pub struct Deployer {
Expand All @@ -57,7 +57,7 @@ impl Deployer {
/// from the current contract and the provided salt.
pub fn with_current_contract(
&self,
salt: &impl IntoVal<Env, Bytes>,
salt: &impl IntoVal<Env, BytesN<32>>,
) -> DeployerWithCurrentContract {
let env = self.env();
DeployerWithCurrentContract {
Expand All @@ -72,7 +72,7 @@ impl Deployer {
pub fn with_other_contract(
&self,
contract_id: &impl IntoVal<Env, BytesN<32>>,
salt: &impl IntoVal<Env, Bytes>,
salt: &impl IntoVal<Env, BytesN<32>>,
) -> DeployerWithOtherContract {
let env = self.env();
DeployerWithOtherContract {
Expand All @@ -87,7 +87,7 @@ impl Deployer {
/// contract ID and the provided salt.
pub struct DeployerWithCurrentContract {
env: Env,
salt: Bytes,
salt: BytesN<32>,
}

impl DeployerWithCurrentContract {
Expand Down Expand Up @@ -125,7 +125,7 @@ impl DeployerWithCurrentContract {
pub struct DeployerWithOtherContract {
env: Env,
contract_id: BytesN<32>,
salt: Bytes,
salt: BytesN<32>,
}

impl DeployerWithOtherContract {
Expand Down

0 comments on commit 07f7524

Please sign in to comment.