Hello everyone! Does someone know where to find the 32 Byte Key's Plain Text and Hex in a ropsten contract? Also what is the first string added into blockchain memory? And how can I add a name "string" into the Array? Thanks guys

Jun 26, 2021, 11:18 AM
These questions are really strange. I can't make heads or tails of what you're trying to ask.
I want to help people but half the time, I have no idea what they are talking about.
I'm considering starting an online introductory tutorial or something.
Jun 26, 2021, 11:32 AM
I can show you the contract so you can have a better understanding
Jun 26, 2021, 11:45 AM
Oh I see, so I guess that's some fancy assembly lib that works on storage, but you're wanting to do it with an array in memory
I'm guessing you're using a library for uint256[] or something
But the library is intended to only work with on chain data, i.e., contract storage.
Well you can't use that library to operate on memory.
So I'd just create a new library that works on memory instead of storage
I dunno, show the whole library
maybe it has getMin and then memory alternative called something like getMin_mem or something
Dude, that's like basic basic basic programming, surely you can write a sum and getMin getMax functions... if not, then I would really suggest reading up on some basic generic programming tutorials and simple algorithms
No you don't
here... hold on...
function sum(uint256[] memory a) returns (uint256 s) { s=0; for(uint i = 0; i < a.length; ++i) s += a[i]; }
Might not even need the s=0; op
and probably just make it public view
ok
If you want me to review code, send me a direct message with a link to the code, or paste the code.
Also if it's a token which is a fork of some other token, let me know so I can diff it easily
Jun 26, 2021, 1:32 PM
Possible that you leave me a dm? Im restricted
Jun 26, 2021, 1:35 PM

© 2024 Draquery.com All rights reserved.