Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: channel close check not enough (#22)
Co-authored-by: liyukun <[email protected]> These checks are also covered in #20 as: ``` if old.state != State::Open { return Err(VerifyError::WrongChannelState); } if !old_args.open { return Err(VerifyError::WrongChannelArgs); } old.state = State::Closed; old_args.open = false; if old != new { return Err(VerifyError::WrongChannel); } if old_args != new_args { return Err(VerifyError::WrongChannelArgs); } ```
- Loading branch information