Comments (8)
This issue should be fixed, check: https://github.com/AleoHQ/snarkVM/pull/1736.
from leo.
This issue should be fixed, check: AleoHQ/snarkVM#1736.
i will check later
from leo.
This issue should be fixed, check: AleoHQ/snarkVM#1736.
the issue not fix now
https://github.com/AleoHQ/snarkVM/pull/1736 the pr not fix my issue.
my issue is :Using 'Mapping::get(ticketPurchaseMap, i)' in the for loop within the finalize method
and i test use Mapping::get_or_use is ok,this is real a bug for Mapping::get
from leo.
Basically, if
s in finalizers should be compiled down to branch instructions. AFAIK this is planned.
from leo.
If I am reading your logic correctly, this is intended.
Attempting to get a value from a mapping that doesn't contain your key will cause an error.
Using mapping get.or_use
is what you should be using if you do not know if a value exists, but want to set a default.
from leo.
Note: this is actually a Leo compiler issue, as the program compiles to Aleo instructions with side-effects that could not be ignored.
from leo.
From what I understand, the compiler needs to leverage branch
commands correctly.
Can you please paste your source code (not a screenshot), or a reproducible example so that we may triage?
from leo.
From what I understand, the compiler needs to leverage
branch
commands correctly. Can you please paste your source code (not a screenshot), or a reproducible example so that we may triage?
https://github.com/AlexZhao6666/double-color-ball/blob/main/contract/double_color_ball/src/main.leo
just replace Mapping::get_or_use to Mapping::get can recurrent
from leo.
Related Issues (20)
- iasp
- [Bug] Refactor TYC equality checking
- Aleo contributor badge issue
- [Bug] Non-finalize transitions cause failure HOT 1
- [Proposal]
- [Feature] `self.address` and `network.id` opcodes
- [Bug] Duplicate return value rejected
- [Feature] Reject invalid names for `leo add`
- [Bug] Reading external mapping not working HOT 1
- [Bug] Leo Website is Down
- [Refactor] Condense the leo build flags
- [Bug]
- [Feature] Print number of variables when calling leo run
- [Fix] Remove leo dependency on snarkOS
- [Feature]
- Check that local and network dependencies match for on-chain tools
- [Bug] Compilation Error in Child Program When Referencing Parent Program with Struct
- [Feature] Adding a pseudorandom number generator function to ChaCha that takes in Aleo Address and a uint64 as parameters to generate extremely unrepeatable unique IDs HOT 2
- [Feature] Add fee estimation in the CLI
- [Feature] Broadcast, save, or print transactions.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leo.