oxheadalpha / tezos-contract-metadata Goto Github PK
View Code? Open in Web Editor NEWTZIP-{016,012,021} Contract Metadata in OCaml
License: MIT License
TZIP-{016,012,021} Contract Metadata in OCaml
License: MIT License
We probably do not need something this heavy-weight.
The culprit:
Case in point: KT1VvnQFn9v3oHA7JLTdDZD6hdAx3T4TnUA2 on Hangzhou-net fails with Contract has no valid %metadata big-map!
despite containing (big_map %metadata string bytes)
within the top-level tree of nested pairs (as per spec). storage
is declared as
storage
(pair (pair <...>)
(pair <...>)
(big_map <...>)
(big_map %metadata string bytes)) ;
the corresponding Micheline representation is
{
"code": [
{...}
{
"prim": "storage",
"args": [
{
"prim": "pair",
"args": [
{...},
{...},
{...},
{
"prim": "big_map",
"args": [
{
"prim": "string"
},
{
"prim": "bytes"
}
],
"annots": [
"%metadata"
]
}
]
}
]
},
{...}
]
}
Notice the pair
constructor here has 4 arguments in the Micheline representation, while the code only looks for cases where there are exactly 2.
Instead of using >>=, we should use let* to be consistent with tezos/tezos, which is doing the same.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.