Deploy Any Contract | Solidity 0.8

  Рет қаралды 20,508

Smart Contract Programmer

Smart Contract Programmer

Күн бұрын

Пікірлер: 56
@smartcontractprogrammer
@smartcontractprogrammer 3 жыл бұрын
0:57 - Function deploy 4:52 - Function execute 5:16 - Helper contract to get contract bytecode 6:26 - Deploy Proxy and Helper 6:36 - Deploy TestContract1 7:57 - Execute TestContract1.setOwner 9:31 - Deploy TestContrac2
@sixtusanyanwu
@sixtusanyanwu 2 жыл бұрын
In the assembly line, why do we need to send in ether to the contract using callvalue()? Can the smart contract be deployed without sending ether to it?
@먼데이좋은데이
@먼데이좋은데이 2 жыл бұрын
I personally found this quite daunting when I first watched the video. For those struggling, I personally recommend to watch this video again after you've finished the whole playlist. There are many concepts that's not described in this video but is explained later on.
@keccak32
@keccak32 Жыл бұрын
I'm thinking so
@bugtesting920
@bugtesting920 8 ай бұрын
rather go for his website it explains one by one
@abhijeetmaurya7355
@abhijeetmaurya7355 3 жыл бұрын
Best chanel on KZbin to learn solidity
@TjSpoonManJacques
@TjSpoonManJacques 3 жыл бұрын
And the only one that teaches for the love of teaching! He is the reason when I learn something know I teach others for free.
@sweetjimmy
@sweetjimmy 2 жыл бұрын
Amazing video as ever 👏 Just a quick note at 7:05 Even though you've specified `returns(address addr)` in the signature of the `deploy()` function of the Proxy contract, you can notice that it is not actually returning anything when called. This is because I think in Solidity only `view` and `pure` functions can return a value. P.S. Even though the values are not returned from transactional/state-modifying functions, in the logs you will be able to see the returned value somewhere after `output:`
@TjSpoonManJacques
@TjSpoonManJacques 3 жыл бұрын
How do you seem to know what I am struggling with in my smart contract lab? This the EXACT code clipping I need to pull of my latest project! From your #1 student and fan in New Orleans - THANK YOU!!!
@benjaminrockiee3888
@benjaminrockiee3888 2 жыл бұрын
Please in what kind of project do we need this? What's the Aim
@bertrandfossung1216
@bertrandfossung1216 3 жыл бұрын
Simply the best👍🏽
@nicolasruiz5542
@nicolasruiz5542 2 жыл бұрын
Awesome!! Thank you for this video. I would like to ask you some real world cases where you would implement a proxy/deployer contract instead of deploying them directly. does this method involve less gas in the contract deployment?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
for development environment, where instead of having a contract owner tied to an account, this contract can be the owner and anyone can call functions through this contract
@JoaoSantos-iz1vq
@JoaoSantos-iz1vq 2 жыл бұрын
thanks. this was the most challenging lesson till now. those abi.encode... instructions and the 'assembly scope', i have to check that better
@timgoppelsroeder121
@timgoppelsroeder121 3 жыл бұрын
Thanks your videos helped me make my first smart contract(a basic voring system)
@aminabcf5749
@aminabcf5749 Жыл бұрын
hey i need you re help im working on voting system !!
@Ts2pc
@Ts2pc 2 жыл бұрын
Though I may not get a chance to use Proxy to deploy any contract, but it is a very interesting lesson!
@sdfsfsfd437
@sdfsfsfd437 3 жыл бұрын
great video! I learn with you. Many thanks!
@aiduongphan285
@aiduongphan285 2 жыл бұрын
For the v, p, n in the "create(v,p,n)" the arguments will always be (callvalue(), add(_code,0x20), mload(_code)) ? Are there any situations that we need to change them?
@adebayoafeez6216
@adebayoafeez6216 2 жыл бұрын
Finding this difficult to understand 😥. Is there a way I can get more explanation? Thank you.
@AhmedHussein521
@AhmedHussein521 2 жыл бұрын
someone said to watch the whole playlist first then go back to this video again
@nellykantu8428
@nellykantu8428 3 жыл бұрын
you're amazing.. thank you
@D3athW1ng
@D3athW1ng 2 жыл бұрын
Awesome ... I think at the time of this writing, the compiler didn't double check for this I am guessing - " Warning: This contract has a payable fallback function, but no receive ether function. Consider adding a receive ether function." ?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
Compiler warning was always there.
@neeble9575
@neeble9575 3 жыл бұрын
Thank you. Can you make video about assembly?
@smartcontractprogrammer
@smartcontractprogrammer 3 жыл бұрын
Concepts to learn about assembly is so easy that I can explain it here. Dont use it Joking aside, I don't actively use it.
@neeble9575
@neeble9575 3 жыл бұрын
@@smartcontractprogrammer hahahaha thank you.
@hemsandy5236
@hemsandy5236 2 жыл бұрын
Can you make video how to deploy BSC and ETH smart contract and receive the same address?
@salem232
@salem232 3 жыл бұрын
very cool ~~ thanks !! 🤓
@seamlessmanu3985
@seamlessmanu3985 Жыл бұрын
The watch order of this video in "Solidity 0.8" playlist is faulty (just after Enum). Watch this video after watching the entire playlist
@jesusdiv18
@jesusdiv18 2 жыл бұрын
I still don't understand the code snippet within assembly()
@MrFalRed
@MrFalRed Жыл бұрын
Hi, thanks for the amzing tutorial. I have a question about if I have to deploy a contract with constructor. How to use the deployer contract in this tutorial to deploy it by giving constructor call data?
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
deploy the contract and have a initialize function that can only be called once?
@theBigbeeStory
@theBigbeeStory Жыл бұрын
In the constructor of TestContract2, instead of x uint y uint, I pass (address a, address b). And I deployed, eventhough deployment succeed but Remix showed 'decoded input address a and address b are zero address'. Can you help me with that?
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
I would write another smart contract with a single function to decode (address a, address b) into bytes. Copy paste the output, and use it to deploy your contract
@acemaningcay909
@acemaningcay909 3 жыл бұрын
Is this proxy will cost gas to deploy?
@smartcontractprogrammer
@smartcontractprogrammer 3 жыл бұрын
yes
@jingli9232
@jingli9232 2 жыл бұрын
thx for your tutorial, so what's the use case for this one, a little bit curious
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
Fun
@TJTHEFOOTBALLPROPHET
@TJTHEFOOTBALLPROPHET 3 жыл бұрын
So if there was a contract I wanted to clone then the address of that contract is pasted into the box where it says proxy?
@smartcontractprogrammer
@smartcontractprogrammer 3 жыл бұрын
no - Proxy is used to deploy new contract
@dogcare5376
@dogcare5376 2 жыл бұрын
How to set the limit of how many tokens or maximum values can an address receive during a time period? Could you please let me know what function could we use for Pragma 8.0 to limit the contract to a max of 200 Token in 24 hours? If anyone has an idea, please write the function for the associated limitation. Highly appreciated
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
create a mapping from address to struct of user info storing amount minted and timestamp when mint is called check timestamp and amount minted
@dogukan9093
@dogukan9093 3 жыл бұрын
Do you do paid tutoring ? i have almost completed the cryptozombies and watched your 0.8 videos.im already imagining some dapp/contract concepts.looking for a tutor or a bootcamp.let me know if you do tutoring.i want to fully understand the solidity first
@smartcontractprogrammer
@smartcontractprogrammer 3 жыл бұрын
no tutors. ask questions on discord or telegram. Someone might answer
@nellykantu8428
@nellykantu8428 2 жыл бұрын
hello, pls what is an arbitrary contract?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
Any conttract
@crypto_peng
@crypto_peng 2 жыл бұрын
can you share arbitrage contract
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
I am a noob at arbitrage
@jesusdiv18
@jesusdiv18 2 жыл бұрын
Really difficult to understand at this stage. Too much complicated
@tekken1935
@tekken1935 3 жыл бұрын
This was very difficult to understand
@mehdiwadoud8098
@mehdiwadoud8098 2 жыл бұрын
You always skip explaining those abi functions ? Do you really understand how they work ?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
No I don't know how it works. Yes I know how to use them
@mehdiwadoud8098
@mehdiwadoud8098 2 жыл бұрын
@@smartcontractprogrammer could you please make a video about them ?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
ok
@meka4996
@meka4996 Жыл бұрын
You are the Superman! Thank you
Simple Storage | Solidity 0.8
3:34
Smart Contract Programmer
Рет қаралды 14 М.
Deploy Different Contracts at Same Address | Hack Solidity 0.8
15:00
Smart Contract Programmer
Рет қаралды 6 М.
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 2,1 МЛН
How to Verify Ethereum Smart Contracts
16:02
Moralis for Developers
Рет қаралды 19 М.
Create2 - Compute Contract Address Before Deploy | Solidity (0.8)
9:53
Smart Contract Programmer
Рет қаралды 7 М.
Use Ethers.js to interact with a deployed smart contract
5:09
BlockchainBob
Рет қаралды 10 М.
Deploy Solidity Smart Contracts with Ganache Personal Blockchain
8:12
MammothInteractive
Рет қаралды 49 М.
Ownable | Solidity 0.8
5:21
Smart Contract Programmer
Рет қаралды 20 М.
Crowd Fund | Solidity 0.8
20:58
Smart Contract Programmer
Рет қаралды 13 М.
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 2,1 МЛН