https://smartpy.io/ https://twitter.com/smartpy_io
This is how I have defined
whitelisted_collections={
Addresses.collection1,
Addresses.collection2,
},
Exception: {e1, ..., en} syntax is forbidden for SmartPy Expr. Please use sp.set([e1, .., en])Читать полностью…
When I use sp.set()
, I get following warning
warning: sp.set() is deprecated, use set() instead
set()
, I get this errorException: {e1, ..., en} syntax is forbidden for SmartPy Expr. Please use sp.set([e1, .., en])
Thank you.
You contract has a pause mechanism so you may also create a new contract and mint the same amount of token to all the users and pause the current one but it's quite a journey.
I see. So the only way is to count with the good will of Kukai wallet team...
Читать полностью…https://better-call.dev/mainnet/KT1GS3uEWWVkAxVfq66EtUn1g6uGX1J72K5Y/storage/big_map/511048/keys
Читать полностью…You can add an entrypoint that permits that.
The token metadata is stored in a bigmap called token_metadata. The key is the token id and the value is a record with two fields:
- token_id
that contains the token id
- token_info
that contains a map of string key and bytes value. The key you're looking for is thumbnailUri
and the value is the encoded URI.
Hey Team,
Thank you for your feedback; we were able to resolve the issue.
Interestingly, the contract had an entry point name longer than 31 characters (32, to be precise). However, before adding our custom default entry point, we were still able to originate it on Ghostnet.
The issue only arose after adding the default entry point to our contract. We resolved it by shortening the entry point name, and now everything is working as expected.
Thank you again for your support.
I seem to remember that in ParisC there is a 31 char length limit on entrypoint names when you have an entrypoint called "default" present, if you dont then somehow the 31 char limit is not enforced. Do you have long entrypoint names?
Читать полностью…Hi everyone! Know any talented builders or founders? We've just launched TZ Apex: Founders Edition, which offers exciting incentives for recommending builders and aspiring Web3 founders within your network.
If you know high-quality projects that you feel can benefit from being in Fortify Labs 2025, you and earn tez based on the progress of your referred startups. https://dmission.me/missions/tz-apex-founders-edition
SmartPy v0.20.0 is out!
👉 See https://smartpy.io/releases
Including
* New FA2.1 draft library and FA2 examples
* New module importing system
* Write SmartPy modules in dedicated *.spy files
* New effects - control entrypoints ability to raise errors and allow mutez overflow or underflow in calculation
* Much improved documentation
* Bugfixes and other improvements
Approximately twelve days ago, the oracle of Kolibri finance malfunctioned.
If there are suitable developers, they are also welcomed to join Kolibri. Currently, there is a portion of developer funds on Tezos, which can be used to pay for a certain amount of work.Currently, the simplest way to succeed is to enable Kolibri to connect to the price API of Coinbase.
Thank you for the report. This error message needs an update.
The syntax is {x1, x2, ...}
and set()
for empty sets.
https://smartpy.io/ide?code=eJx1kM1qwzAMx@9@CtGTw4wh3U6DwqDnPoMRtssM8QeRBwmj716rSddmUJ308ZP@kkIseaxAEcdaZkACKkKILyo6ZvczeOH8GSKGJLtPAc3sgERwmo851RFtlQ29@yvCxm3GhBSqMZL8cH6qsXFKO6yoJ4JDC6vsXgAzA7@9gr2C94v4o3hJ34TnkkOqG@VH2vQ3dQXT_wWKtkhVTordRr6Sn0ijc3LqYH1Mi0z1xAuz1uIuw8n6hGPIfFHRXDH3lNyd2jciDjt1@2e3adDf_QNYSrZvU5jUT8_edsHboWErrTdHf@y7KxISiTU-
More info here : https://smartpy.io/manual/data-types/lists-sets-and-maps#sets
I see. No problem. I'll figure out a solution. No worries!
Читать полностью…It appears that your contract doesn't have mechanism to update the token metadata so it's not possible.
Читать полностью…Great. The problem is: This contract is already published on Tezos mainnet. Is there a way to update the thumbnailUri OR insert a new entry with token_id 1?
Читать полностью…Hi there. What would be the easiest way to update a Smart Contract token metadata thumbnailUri?
Читать полностью…Cool, glad it worked out and yes I agree that it is rather strange behaviour. BTW you might want to look into https://tezos.gitlab.io/user/mockup.html for a faster iteration cycle for these types of problems.
Читать полностью…I think this is just because entrypoints are arranged alphabetically by name, so if you have a bunch that come before "d" the default will be deeply nested
Читать полностью…Hey Team,
When I try to originate my contract's Michelson code (using Taquito), I encounter the following error: proto.020-PsParisC.michelson_v1.unreachable_entrypoint
.
It seems that the issue is caused by the custom default entry point I defined in my contract. Removing it entirely resolves the problem.
I naively attempted to "move" the entry point higher up in the contract's structure, but the same error persists.
It appears that the generated default entry point in the Michelson code is deeply nested within an or structure.
{
"prim": "parameter",
"args": [
{
"prim": "or",
"args": [
{
"prim": "or",
"args": [
{
"prim": "or",
"args": [
{ "prim": "or", "args": [ { "prim": "nat", "annots": [ "%entrypoint_A"] }, { "prim": "address", "annots": [ "%entrypoint_B" ] } ] },
{
"prim": "or",
"args": [
{ "prim": "unit", "annots": [ "%default" ] },
{
"prim": "or",
"args": [
{ "prim": "address", "annots": [ "%entrypoint_C" ] },
{ "prim": "lambda", "args": [ { "prim": "unit" }, { "prim": "list", "args": [ { "prim": "operation" } ] } ], "annots": [ "%entrypoint_D" ] }
]
}
]
}
]
},
// ...
"name": "TezosOperationError",
"lastError": {
"kind": "permanent",
"id": "proto.020-PsParisC.michelson_v1.unreachable_entrypoint",
"path": [
"Right",
"Left",
"Right",
"Right",
"Right"
]
}
Are there tezos wallets apps that allow you to see smart contracts or contract data?
For example, if I have a contract that contains tickets, I would want to see those tickets. How can I see the tickets in wallet somehow? If i can see tickets, how can i send them out?
Genius developers, welcome to join Kolibri and try to solve problems to earn rewards
Читать полностью…we'll be doing the final DNS changes later today - so apologies if there are any short disturbances
Читать полностью…hi! after the dns update, some of the legacy links aren't working any more, eg links to individual version releases from https://legacy.smartpy.io/docs/releases
Читать полностью…strange, loaded correctly on Chrome, not on Firefox 🤷♂️
Читать полностью…