Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boolean primitive type #33

Open
talkol opened this issue Dec 5, 2018 · 1 comment
Open

boolean primitive type #33

talkol opened this issue Dec 5, 2018 · 1 comment

Comments

@talkol
Copy link
Member

talkol commented Dec 5, 2018

Are we interested in this?

It will have to be saved as a byte (8 bits), so this is basically just a typedef for uint8

@EsterEdelstein
Copy link
Contributor

yes, we are interested. I took a look at active contracts seems to be used.

The possible values are constants of true and false, or 1 (for true), 0 for false.  We should make sure that if the value is “false” (which in golang maybe equal to 0 - that the value will be saved on the state).

In regards to what you wrote, from a point of view of a smart contract developer will I be able to write, for example :
state.WriteBoolByKey("key", false)
?
This task right now, is not the most urgent and will be connected to epic https://tree.taiga.io/project/orbs-network/epic/363 (spec ready by end of December, dev to start around Jan ).

Tal - if you have rough EE for this task, that would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants