Hello everyone.
I have problem in my contract function.
I want return array of struct from function(), but I always get '0' from function() (then I compile to CSharp code use VSCode - extension)

Aug 2, 2021, 4:39 PM
Aug 2, 2021, 4:39 PM
maybe the for-loop never runs because criminals=0 and its < not <=
Aug 2, 2021, 4:50 PM
criminal is 0
Aug 2, 2021, 5:00 PM
i<=criminal
Aug 2, 2021, 5:07 PM
Before i call this func(), i creating new Crimer and added,
> criminals return more then 0
⬆️
criminal is 0
i<=criminal
Aug 2, 2021, 5:45 PM

© 2024 Draquery.com All rights reserved.