Agnibha Chakrabortyagni03.hashnode.dev·a day agoProof Of Work In BlockchainOverview Proof of Work (PoW) is a decentralized consensus mechanism used in blockchain networks to verify and add new transactions to the ledger. It works by requiring miners to solve complex computational puzzles to add a block to the blockchain, ea...DiscussBlockchain
Murat Can Yükselmuratcanyuksel.hashnode.dev·Apr 26, 2024How to handle Solidity errors with React and Wagmi hooksIf you're building a frontend for a blockchain protocol, you'll need to handle errors coming from the smart contracts. In Solidity, we will now learn about require statements. Solidity require are statements that are added in the functions to stop th...DiscussBlockchain
Aapsi Khairaaapsi.hashnode.dev·Apr 25, 2024What is Address(0) or Null Address in Solidity?Introduction In the exciting realm of Ethereum and smart contracts, the concept of Address(0) stands as a fascinating enigma, often referred to as the “null address” or “zero address.” But what exactly is Address(0), and why does it hold such a uniqu...DiscussSolidity
Zealynx Securityzealynx.hashnode.dev·Apr 25, 2024Prevent Front-Running on ERC20 Smart ContractsWhat will you find here? This article explores the critical issue of front-running vulnerabilities in ERC20 tokens on the Ethereum blockchain, focusing on how these security gaps can be exploited through the token allowance mechanism. We provide a de...Discuss·74 readsSmart Contracts
Aapsi Khairaaapsi.hashnode.dev·Apr 20, 2024Understanding the Difference: Solidity's Strict Pragma versus Floating PragmaGetting Started In the world of Solidity, where smart contracts reign supreme, the first line of defence against chaos is often the pragma directive. But what’s the fuss between strict and floating pragmas? Let’s dive into the nitty-gritty and uncove...DiscussSolidity
Zealynx Securityzealynx.hashnode.dev·Apr 17, 2024Invariant Tests with Echidna for AMM Smart ContractsIn this article, we are going to review Invariant tests for AMM contracts with Echidna, with a short comparison with Foundry invariant testing and a deep dive into property-based invariant tests for an Automated Market Maker smart contract. Introduc...Discuss·10 likes·26 readsSmart Contracts
Zealynx Securityzealynx.hashnode.dev·Apr 17, 2024The Critical Role of Fuzzing in Blockchain SecurityIn this article, we will dive into the fascinating realm of fuzzing. To understand it and before setting up our tests in Foundry we will learn what is the core concept of fuzzing. What is fuzzing? Fuzzing, or fuzz testing, is a technique where invali...Discuss·26 readsSmart Contracts
John Fáwọléjohnfawole.hashnode.dev·Apr 12, 2024How To Build A Ride-Hailing Smart Contract With SolidityRide-hailing businesses such as Uber and InDrive are fast becoming interwoven into modern society. They are a million-dollar industry. In this tutorial, I built a smart contract for a ride-hailing service company with Solidity and tested it locally w...DiscussSolidity
Pierre E.blog.pedrojok.com·Apr 12, 2024The Ethernaut CTF Solutions | 31 - StakeGoals The Contract // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Stake { uint256 public totalStaked; mapping(address => uint256) public UserStake; mapping(address => bool) public Stakers; address public WETH; ...DiscussThe Ethernautethereum smart contracts
Pierre E.blog.pedrojok.com·Apr 11, 2024Damn Vulnerable DeFi | 1 - UnstoppableDamn Vulnerable DeFi challenges are a bit different from the Ethernaut challenges. They are focused on DeFi, as the name suggests, but they are also a bit more realistic as they involve a lot more contracts and inheritances, while their Ethernaut hom...DiscussDamn Vulnerable DeFiethereum smart contracts