Does ever calling `check()` on a capability panic?

57 Views Asked by At

According to the docs there is no reference of check panicking in any situation, but I would like to know if there is any edge case where this method could panic rather than returning false.

1

There are 1 best solutions below

0
On

AFAICS, there are currently two cases where check() may fail:

Please feel free to open an issue in the Cadence repository if you think this should be changed, and especially why. Thanks!