ERC20 token contract has several functions that you must know how to use. In this video I will explain how to use those functions, transfer, approve and transferFrom.
Examples of how to fuzz timestamps and caller in Echidna
#Solidity #SmartContract #Ethereum #スマートコントラクト
https://solidity-by-example.org/tests/echidna
https://github.com/crytic/echidna
https://github.com/crytic/echidna/blob/master/examples/solidity/basic/default.yaml
Take a course
https://www.smartcontract.engineer/
Follow
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=dpK9a4WRXtA
Contracts deployed on the blockchain are bytecode, difficult for us to read. On etherscan.io, you can verify that a source code compiles to the bytecode that was deploy. So you can review the code. However there is a way to have a code verified on etherscan.io and hide a malicious code. In this video I will show you how
#Solidity #hidingMaliciousCode #hack #txorigin
Code: https://solidity-by-example.org/hacks/hiding-malicious-code-with-external-contract/
References
https://github.com/ethereumbook/ethereumbook/blob/develop/09smart-contracts-security.asciidoc
https://solidity-05.ethernaut.openzeppelin.com/
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=qDYlauM00lY
In this video I explain what are events and how they are used.
#Vyper #Event #SmartContract
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=5BB7DR1MJAI
Testing authentication in Foundry
Code
https://github.com/t4sk/hello-foundry
Book
https://book.getfoundry.sh/
Solidity by Example
https://solidity-by-example.org/
Take a course
https://www.smartcontract.engineer/
#Solidity #SmartContract #Ethereum #スマートコントラクト
Remix
https://remix.ethereum.org
Follow
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=gYwO3Jbi4O4
There are two common algorithms used to remove an element from an array in Solidity. One way is to copy all elements from right to left starting at the index to remove and then popping the last element.
#Solidity #SmartContract #Ethereum #スマートコントラクト
Remix
https://remix.ethereum.org
Code
https://solidity-by-example.org/array/
Take a course
https://www.smartcontract.engineer/
Follow
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=szv2zJcy_Xs
Swap function part 2 for Uniswap V3
Code
https://github.com/t4sk/clamm
Take a course
https://www.smartcontract.engineer/
#Solidity #SmartContract #Ethereum #スマートコントラクト
Follow
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=2mN8ECdfWOU
Damn Vulnerable DeFi is a CTF challenge illustrating hacks in DeFi. In this video I explain how to beat the 6th challenge - selfie.
0:04 - Setup and challenge
0:25 - Code
3:11 - Solution
#Solidity #SmartContract #Ethereum #CTF #DeFi #スマートコントラクト
CTF
https://www.damnvulnerabledefi.xyz/
Code with solutions
https://github.com/t4sk/damn-vulnerable-defi
Take a course
https://www.smartcontract.engineer/
Follow
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=1XJZkuESMRw
sol-select is a tool to switch between Solidity compiler versions. It is easy to install, learn and use. I recommend you put this into your tool box.
https://github.com/crytic/solc-select
#Solidity #SmartContract #Solidity #Ethereum #スマートコントラクト
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=zUpbZRmITZQ