Skip to content

Commit

Permalink
Add comments for binding
Browse files Browse the repository at this point in the history
  • Loading branch information
antonijzelinskij committed Nov 18, 2024
1 parent 20af2c6 commit f2f25e5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ private fun bindInterior(instance: Any?): MultiLocation.Interior {

private fun bindJunctions(instance: Any?): List<Junction> {
if (instance is List<*>) {
// For XCM V4 or Interior.X2 and higher
return bindList(instance, ::bindJunction)
} else {
// For XCM V3 and Interior.X1
return listOf(bindJunction(instance))
}
}
Expand Down

0 comments on commit f2f25e5

Please sign in to comment.