Skip to content

Commit

Permalink
feat: 🎸 getLegs can now return off-chain legs
Browse files Browse the repository at this point in the history
Previous commit `e06ac80` introduced a breaking change that was not
marked. `Instruction.getLegs()` can now return off-chain legs.

Legs can be filtered in a type safe manner using `isOffChainLeg` to
be compatible with prior behavior.  e.g.

`legs.filter((leg): leg is Exclude<Leg, OffChainLeg> => !isOffChainLeg(leg))`

`AffirmOrWithdrawInstructionParams` was renamed to `WithdrawInstructionParams`

BREAKING CHANGE: 🧨 getLegs may return off-chain legs
  • Loading branch information
polymath-eric committed Sep 9, 2024
1 parent d7a219f commit fbf6718
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit fbf6718

Please sign in to comment.