extending array while in parallel-reduce block #1185
Answered
by
jeapostrophe
alcyoneus-g
asked this question in
Q&A
-
the idea is voting and in my implementation, I was trying to initially setup empty array of type Address (voters) for yes and no (since we want to allow a single voter to vote only once)
And here is a snippet of the current implmentation:
thanks |
Beta Was this translation helpful? Give feedback.
Answered by
jeapostrophe
Jun 23, 2022
Replies: 1 comment 6 replies
-
Variables can only have one type. So you can't change |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
jeapostrophe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Variables can only have one type. So you can't change
x
fromAddress[5]
intoAddress[6]
. I think you could doMaybe<Address>[N]
. Or you could use aMap
and a count.