mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-08-25 03:11:21 +00:00
add constructors from ranges
This commit is contained in:
@@ -19,15 +19,12 @@ fn main() {
|
||||
|
||||
let post = pre.account.clone();
|
||||
|
||||
let output = ProgramOutput::new(
|
||||
ProgramOutput::new(
|
||||
instruction_words,
|
||||
vec![pre],
|
||||
vec![AccountPostState::new(post)],
|
||||
)
|
||||
.valid_from_id(from_id)
|
||||
.try_with_validity_window((from_id, until_id))
|
||||
.unwrap()
|
||||
.valid_until_id(until_id)
|
||||
.unwrap();
|
||||
|
||||
output.write();
|
||||
.write();
|
||||
}
|
||||
|
||||
@@ -44,9 +44,7 @@ fn main() {
|
||||
vec![pre],
|
||||
vec![AccountPostState::new(post)],
|
||||
)
|
||||
.valid_from_id(from_id)
|
||||
.unwrap()
|
||||
.valid_until_id(until_id)
|
||||
.try_with_validity_window((from_id, until_id))
|
||||
.unwrap()
|
||||
.with_chained_calls(vec![chained_call])
|
||||
.write();
|
||||
|
||||
Reference in New Issue
Block a user