Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes
  • Loading branch information
ascjones committed Feb 23, 2024
commit 96840c49ca33a3c2a470bd3742992b9b4c872fdd
3 changes: 2 additions & 1 deletion crates/e2e/src/builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use ink_env::{
},
CreateBuilder,
ExecutionInput,
LimitParamsV2,
},
Environment,
};
Expand All @@ -32,7 +33,7 @@ pub type CreateBuilderPartial<E, ContractRef, Args, R> = CreateBuilder<
E,
ContractRef,
Unset<<E as Environment>::Hash>,
Unset<u64>,
Set<LimitParamsV2<E>>,
Unset<<E as Environment>::Balance>,
Set<ExecutionInput<Args>>,
Unset<ink_env::call::state::Salt>,
Expand Down
6 changes: 3 additions & 3 deletions crates/env/src/call/create_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ where
}

/// todo: [AJ] docs
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct LimitParamsV1 {
gas_limit: u64,
}

/// todo: [AJ] docs
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct LimitParamsV2<E>
where
E: Environment,
Expand Down Expand Up @@ -604,7 +604,7 @@ where
RetType,
> {
CreateBuilder {
code_hash: (),
code_hash: self.code_hash,
limits: Set(LimitParamsV1 {
gas_limit: self.limits.value().ref_time_limit,
}),
Expand Down