Learning Solidity : Tutorial 7 Extending String Functionality and Bytes

preview_player
Показать описание

If you would like to donate some Ethereum my wallet is: 0xC8c8c3Fae80e3eD236970e1C93AcF5B91D0993e2
Many thanks!
Рекомендации по теме
Комментарии
Автор

Going through all your sol vids now. Best pure sol tutorial I've found online so far 👍🏼.

DaBossLewis
Автор

You're the best. Thanks so much for this great tutorial.

Bunchhieng
Автор

Nice video! Helps understand the fact that for loops are required for some things, and that they are usable in solidity (just expensive for large strings!)

Might be a good idea to put up a text on the screen that we *can* directly create a bytes variable called _newValue of the correct length. Otherwise, people might think it's not possible or something!

mbharatm
Автор

Can you suggest some exercises along with these tutorials just the get the complete feel of Solidity.
PS : I really like your videos.

AyushSharma-uxfk
Автор

Another way to concatenate strings is using abi.encodePacked() method. But make sure to cast it as string before you return it:

return ", "Solidity"));

majmunOR
Автор

Thanks a lot. You're very help me

egorsilaev
Автор

Thank you for the great tutorials. I am wondering if there is a way to replace one character within a string in solidity

mohamedgrissa
Автор

Hi, thanks for those excellent videos. I was just curious: why is it important to put an "internal" modifier to the methods of the library ?

zacharricoupet
Автор

Can you explain more about "memory" you used for converting string to bytes, not able to get that properly

Marcus-pqvb
Автор

Your librabry would create an out of gas exception on really really long strings wouldn't it ? Since it's a loop with no cap?

Noisecooore
Автор

In the Strings library on line 16 you have incremented j++ without having it initialized. Can you explain what is the default value that is for j in this case.

iblockdev
Автор

Hi, Thanks for the videos. I have one question. When should we use "new" keyword. is it just for arrays? I'm confused about "new" if you or anyone can help me I would appreciate it a lot.

spidermax
Автор

Thanks for your tutorial. Something bother me. I heard that loops are bad things to do use contracts.

xzybit
Автор

Why exactly is it advised to use bytes and not strings? More specifically, is there a reason why you decided to convert everything into bytes? ALSO, why "internal" is used?

rahulkothari
Автор

Why do you create _tmpValue and then cast to bytes? Why not just create a new bytes(len) variable?

augustuscaesar
Автор

I am not sure if I am doing something wrong, however, if you take the code directly from the Github and run it in Remix IDE it returns an empty string. Anyone else having this issue? Thanks!

taylordawson
Автор

Why is testConcat not:

function testConcat(string _base) returns (string) {
return concat(_base, "_suffix");
}

I am so confus

DJOverlast
Автор

Whats the actual reason to use memory or stack. Why cant we just declare something as bytes without prefixing with memory?

siddharthr
Автор

Getting an error while execution of testConcat function.
Status: 0x0 Transaction mined but execution failed
gas: gas
Transaction Cost: gas
Execution Cost: 39978088 gas

Decoded Input:
{
"string _base" : "Prefix"
}
Decoded Output:
{
"0" : "string" : "
}

elixirautomation
Автор

What your saying is getting muffled by the sound of your typing.

mwaikul
welcome to shbcf.ru