I see that in the jpg.store
datum attached to offers there is a 122 cbor tag. The following is a snippet from the datum used in a collection offer:
121([_
122([_
h'84CC25EA4C29951D40B443B95BBC5676BC425470F96376D1984AF9AB'
]),
121([_
121([_
122([_
h'2C967F4BD28944B06462E13C5E3F5D5FA6E03F8567569438CD833E6D'
])
])
])
])
I noticed that Lucid fails to parse this datum using the following Data
schema:
Data.Object({
paymentCredential: Data.Object({
pubKeyHash: Data.Bytes()
}),
stakeCredential: Data.Object({
container: Data.Object({
container: Data.Object({
stakeKeyHash: Data.Bytes()
})
})
}),
})
However manually replacing the hex in the cbor to change the 122 tags for 121 tags fixes that issue, with the same Lucid schema. Is 122 not an object? Is there somewhere I can read up on these tags? thanks