Skip to content

Simplify match token_branch in funding_path. #3

@roconnor-blockstream

Description

@roconnor-blockstream

The

match token_branch {
    Left(u: ()) => assert!(jet::eq_32(jet::current_index(), 0)),
    Right(u: ()) => assert!(jet::eq_32(jet::current_index(), 1)),
};

construct in funding_path can be simplified to asserting that the current index is ≤1 or alternatively <2.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions