Really appreciate all these quick starter vids on solidity concepts! Top man for taking the time to create 👍
@supadrasta2 жыл бұрын
Clear and crisp explanation. Thank you.
@MrCoreyTexas4 ай бұрын
In my testing, I found out you can deploy 1 or more Account contracts for the same user, or you can create different Account contracts for different users, as long as there's enough Wei in the AccountFactory to create them. You could also add a fallback/receive to AccountFactory to reload it with more Wei.
@Bruhne Жыл бұрын
Got it!
@mizo76272 жыл бұрын
Hi , in the blockchain if we deployed the AccountFactory first , how will the contract Account be visible to us if it is not deployed yet?
@zachz66202 жыл бұрын
Thanks again SCP for all this great content. May i ask... with this new contract method you've shown us here.... does this mean you can actually create a copy any contract that is publicly deployed on the ETH blockchain? For example, if wanted to create a "copy of the uniswap contract" i can do it by creating the contract you just showed us and then i would actually be able to see if and use it? Just trying to envision a practical application of this.
@ismaila33472 жыл бұрын
Thanks for the video! quick question, why is the function createAccount in AccountFactory contract marked as external and not as public? thank you!
@smartcontractprogrammer2 жыл бұрын
You tell me. Watch the video about visibility
@ismaila33472 жыл бұрын
@@smartcontractprogrammer makes sense , another question, why do we declare constructors as public even though we only access them externally? do you agree that we should declare them as external? am I missing something? :)
@smartcontractprogrammer2 жыл бұрын
Solidity 0.8, no visibility is declared for constructor
@NishantSingh-zx3cd2 жыл бұрын
Good work, thanks
@NishantSingh-zx3cd2 жыл бұрын
what happens if we omit 'new' and keep the rest of the code the same?
@nicolasruiz55422 жыл бұрын
Awesome video!! I just have a question, What is a real use case for this kind of contract ??
@smartcontractprogrammer2 жыл бұрын
contracts that deploy contracts Uniswap V2 and V3
@shubhzdev490510 ай бұрын
shouldn't value:msg.value instead of 111?
@pythusiast4701 Жыл бұрын
In line number 18# why are we not using any visibility specifier like public,private etc. ? Something like => `Account public account = new Account(_owner)`
@MrCoreyTexas4 ай бұрын
I don't think public/private apply to contracts? Good question, shows you are thinking about the overall syntax of Solidity (it can be confusing, too, which goes first, public or payable?) Basically every contract that is deployed is out there on the blockchain for anyone to see, so they are all public in that sense.
@Ts2pc2 жыл бұрын
The third time , now having a better understanding. Very good example. One question, since the Factory has deployed a new Account(the new contract), so is it still necessary to deploy the new Account by the new contract address?
@MrCoreyTexas4 ай бұрын
I'm not exactly sure what you mean, but I think if you were to do this on the mainnet or testnet, the Account contract is actually there on the blockchain as soon as you call createAccount in AccountFactory, it's just that when you "Deploy at Address" in Remix, it allows it to appear in that left hand window. When I graduate from "Remix school" where we're all starting, I'll test that out.
@stevekimani.111 Жыл бұрын
can someone please explain why when we create the account contract using accountFactory the contract account its balance is still zero or is it something i am doing wrong
@MrCoreyTexas4 ай бұрын
No, you're OK, the account balance of AccountFactory is initially 0 wei, but when you call createAccount you send wei with THAT transaction. So the first tx deploys Account Factory but sends 0 wei and then the second tx calls AccountFactory.createAccount() but you have to send wei with it (or otherwise that tx fails and reverts)
@zulfiqar79672 жыл бұрын
I need to learn Blockchain from scratch., From where should i start..? And can u share any roadmap..?
@smartcontractprogrammer2 жыл бұрын
I've made a video, search roadmap
@muzingnimzing4382 жыл бұрын
Hello sir, please what if i add another account, how do i push it into that array? thanks