New answers tagged

1 vote

Receiving a "doesn't have a comparable type" error when returning a list from an on-chain view

You cannot compare lists in Tezos. However, you can use scenario.verify_equal.
user avatar
  • 3,110
0 votes

Receiving an "OpenVariant" error when evaluating view result in another contract. How do you use the view response inside a smartpy contract?

Even though the tests pass it is not actually possible for another contract to use the result of an off-chain view. If you want to use the result in another contract it must be an on-chain view.
user avatar
  • 79

Top 50 recent answers are included