Skip to content

Commit

Permalink
vm: fail validation when state is absent
Browse files Browse the repository at this point in the history
  • Loading branch information
whfuyn committed Apr 19, 2024
1 parent 551d6d6 commit 8dad03f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/vm/op_contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,6 @@ impl InstructionSet for ContractOp {
}
macro_rules! load_inputs {
($state_type:ident) => {{
if !context.prev_state.contains_key($state_type) {
return ExecStep::Next;
}
let Some(prev_state) = context.prev_state.get($state_type) else {
fail!()
};
Expand All @@ -245,9 +242,6 @@ impl InstructionSet for ContractOp {
}
macro_rules! load_outputs {
($state_type:ident) => {{
if !context.owned_state.has_type(*$state_type) {
return ExecStep::Next;
}
let Some(new_state) = context.owned_state.get(*$state_type) else {
fail!()
};
Expand Down

0 comments on commit 8dad03f

Please sign in to comment.