Lots of information explained very well in just 464 seconds! Your videos create a unstoppable momentum learning Solidity! You should teach more topics.
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.
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.
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.
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 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.
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.
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 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?
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
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?
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)
Lots of information explained very well in just 464 seconds! Your videos create a unstoppable momentum learning Solidity! You should teach more topics.
Totally agree! so many concepts in a few minutes. I have gone over and over and still capture small pieces of great worth. Thanks!!!
another excellent video! Thank you so much! I learnt a lot from your channel! Keep up the good work! 👍
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.
Great video! as always in your channel.
Use this function to read data:
function readData() public view returns (bool b,uint u){
(b, u) = abi.decode(data,(bool,uint));
}
I would like to learn solidity assembly with your videos and your explanations. Keep it like a sugerence for future videos. 😉👍
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.
always nice to learn a new language
Thank you so much, I forgot about needing to declare "unit" as "uint256" and couldn't figure out why my function wasnit working.
Thank for this video!
You forgot to show us what was stored in the `data` state variable 🙂
compared to the others, it is still a good work, but it will be better to have a full demo and more in details.
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.
very clear, thx
i love japenese people youre the best
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?
No, callFoo doesn't execute fallback. I just double checked
@@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.
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?
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.
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)?
Check video on interface
@@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?
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
I actually prefer "foo" "bar" ... I feel these meaningless func names will prevent distractions from the main topic.
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?
is this practical? or is it better to call the func from other contracts in the simplier way?
It's necessary to know how to use call
I am using the same code as you are but mine keeps reverting. I am losing my mind fgs
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)
@@jamesc5768 thanks bro u saved me.
how to make nft for project relase now
openzeppelin ERC721
What does low level mean?
lower abstraction