Call | Solidity 0.8

Поділитися
Вставка
  • Опубліковано 3 лют 2025

КОМЕНТАРІ • 36

  • @Hi_Chew
    @Hi_Chew 3 роки тому +9

    Lots of information explained very well in just 464 seconds! Your videos create a unstoppable momentum learning Solidity! You should teach more topics.

    • @luiscallero6288
      @luiscallero6288 11 місяців тому

      Totally agree! so many concepts in a few minutes. I have gone over and over and still capture small pieces of great worth. Thanks!!!

  • @ismaila3347
    @ismaila3347 3 роки тому +1

    another excellent video! Thank you so much! I learnt a lot from your channel! Keep up the good work! 👍

  • @Bruhne
    @Bruhne Рік тому

    Got it! I customized {value: _amount, gas: _cost}, and to customize both was more expensive, which I’m sure you already know. Tinkering around with it is fun though.

  • @sdfsfsfd437
    @sdfsfsfd437 3 роки тому

    Great video! as always in your channel.

  • @dikshantrajput8925
    @dikshantrajput8925 2 роки тому +2

    Use this function to read data:
    function readData() public view returns (bool b,uint u){
    (b, u) = abi.decode(data,(bool,uint));
    }

  • @sdfsfsfd437
    @sdfsfsfd437 3 роки тому +2

    I would like to learn solidity assembly with your videos and your explanations. Keep it like a sugerence for future videos. 😉👍

  • @andreujuanc
    @andreujuanc 3 роки тому +1

    Would be nice to show how ..selector work. I find it better to use because if I change the function signature I don't have to change the strings all around.

  • @D3athW1ng
    @D3athW1ng 3 роки тому

    always nice to learn a new language

  • @_sky_3123
    @_sky_3123 2 роки тому

    Thank you so much, I forgot about needing to declare "unit" as "uint256" and couldn't figure out why my function wasnit working.

  • @ДмитрийПодольский-ь2ц

    Thank for this video!

  • @sweetjimmy
    @sweetjimmy 2 роки тому +1

    You forgot to show us what was stored in the `data` state variable 🙂

  • @Ts2pc
    @Ts2pc 2 роки тому +1

    compared to the others, it is still a good work, but it will be better to have a full demo and more in details.

  • @MrCoreyTexas
    @MrCoreyTexas 6 місяців тому

    My version of Remix complains that I do not have a receive() function, consider adding one, and adds ugly orange squiggles under every line of code for contract TestCall. Very annoying.

  • @jingli9232
    @jingli9232 2 роки тому

    very clear, thx

  • @cryptosurfer2369
    @cryptosurfer2369 3 роки тому

    i love japenese people youre the best

  • @simplatory802
    @simplatory802 2 роки тому +1

    Hey Smart Contract Programmmer,
    I'm happy to see these tutorials. These are like none other on the internet. However, I have a question, when executing callFoo with the 111wei and typing in the address of TestCall contract, the transaction is successful. While you didn't show us the logs, I read the message.
    "args": {
    "0": "fallback was called",
    "message": "fallback was called"
    }
    So, it's the same message as the next case callDoesNotExit. And here you do show us the logs. So, basically both end invoking the fallback function. Isn't it? What am I getting wrong here?

    • @smartcontractprogrammer
      @smartcontractprogrammer  2 роки тому

      No, callFoo doesn't execute fallback. I just double checked

    • @simplatory802
      @simplatory802 2 роки тому +1

      @@smartcontractprogrammer I think I have a problem with replicating code on remix. I commented on another one of your videos about a similar problem where it worked once, but didn't again. I don't quite know what's causing it.

  • @gabkov
    @gabkov 3 роки тому

    when u specify value u always have to send the same amount of wei when u initiate the tx? isn't the value being populated automatically?

  • @warcommander6283
    @warcommander6283 2 роки тому

    Hi. Thanks for the amazing vids.
    How do we call this function on return type functions? For example there is a function named "getName()" that returns the state variable of name. How do we call this function using .call? I tried but its not working.

  • @tuntunewala
    @tuntunewala 2 роки тому

    sir i realy want to know * how do we call a function of a contract that is already deployed and we don't have the ABI of the Contract and we only have an address and a function name * (or Interface more precisely)?

    • @smartcontractprogrammer
      @smartcontractprogrammer  2 роки тому

      Check video on interface

    • @tuntunewala
      @tuntunewala 2 роки тому

      @@smartcontractprogrammer yes sir i have already watched it but sir can't i use the address of the smart contract (already deployed) to call, delegate call directly using its 4bytes encodewithabi method but i shows error all the time, I don't know why?

  • @yadusolparterre
    @yadusolparterre 3 роки тому +4

    It's really hard to follow advanced concepts with names such as "foo", "bar", "callFoo", "call" or "testcall"
    Names closer to real-life cases would probably make it clearer

    • @Hi_Chew
      @Hi_Chew 3 роки тому

      I actually prefer "foo" "bar" ... I feel these meaningless func names will prevent distractions from the main topic.

  • @kubalibre4009
    @kubalibre4009 2 роки тому

    I don't understand how it works. How is ICounter related to Counter, have I missed something? Shouldn't Counter be implementing ICounter by declaring: contract Counter is ICounter?

  • @brightglitch958
    @brightglitch958 2 роки тому

    is this practical? or is it better to call the func from other contracts in the simplier way?

  • @jhaymes8220
    @jhaymes8220 3 роки тому

    I am using the same code as you are but mine keeps reverting. I am losing my mind fgs

    • @jamesc5768
      @jamesc5768 2 роки тому +1

      idk if you're still stuck but I ran into a similar thing where i had a space char in abi.encodeWithSignature at the comma in "bar(uint256,bool)" - i removed it and it worked (was going crazy as well lol)

    • @shubhamguptahere
      @shubhamguptahere Рік тому

      @@jamesc5768 thanks bro u saved me.

  • @235gajeraankita8
    @235gajeraankita8 3 роки тому

    how to make nft for project relase now

  • @leonardo0542
    @leonardo0542 2 роки тому

    What does low level mean?