TezosTaqueria / taqueria

*BETA* Taqueria provides a seamless development workflow to easily build, test and deploy your Tezos applications.
https://taqueria.io
Apache License 2.0
64 stars 20 forks source link

๐Ÿ› Bug โžพ Variant is not properly defined #1935

Closed zamrokk closed 5 months ago

zamrokk commented 5 months ago

๐Ÿšฅ Status (Internal Taqueria Team Use Only)

๐Ÿ†˜ What happened?

I generated types using taq generate When I try to display a status field that is a variant type, it did not display, so I debugged it and I found that typing does not match

๐Ÿ†˜ Steps to Reproduce?

  1. use a ligo variant : export type STATUS = ["ACTIVE"] | ["RECOVERING", address, timestamp] | ["DEAD"]; on a contract storage

  2. deploy this contract with a status RECOVERING

  3. generate the types on a dapp and try to display the status + the embedded address and the timestamp.

Instead of expected field 0 and 1 , the values are stored on fields 3 and 4

image

๐Ÿชต Relevant log output

"@taquito/taquito": "^19.2.0",

taqueria   0.50.0

"@taqueria/plugin-contract-types": "^0.50.0",

๐Ÿ˜ How impactful is this bug?

๐Ÿค” Notable but managable

โฑ๏ธ Prevalance

No response

๐Ÿ’ป Operating System

Windows -> WSL

๐Ÿ•ธ๏ธ System Architecture

x64

๐ŸŒฎ Taqueria Version

0.50.0

๐ŸŒฟ Node.js Version

v18.19.1

โ˜Ž๏ธ Contact Details

No response

Code of Conduct

mweichert commented 5 months ago

Closing this, as we determined this to be a bug with Taquito.

zamrokk commented 5 months ago

Thank you Michael !