Dev (@_dev14325) header
Dev (@_dev14325) profile picture

Web3

Chandigarh , India
Joined December 2023
💡 Your Turn! Try to combine iterator and consuming adapters in a single pipeline. Can you create a one-liner that filters out odd numbers, doubles the even numbers, and sums them up? 🤔 Solution :
24
🔥 What are Consuming Adapters? Consuming adapters consume the iterator, meaning they take ownership of it and do not create another iterator. ✍️ Common Consuming Adapters : count() , sum() , product() Example :
1
7
Common Iterator Adapters map() , filter() ,take(n),skip(n): Example :
1
9
1. Using Result for File Handling with Errors Handle file reading and parsing with custom errors: 2. Using Option to Safely Return None or a Value Find the first uppercase letter in a string:
12
Why ✅ Safer Approach 2 Works : If nth(10) returns None, unwrap_or(' ') will return a default character instead of panicking. This is super useful if you just want to avoid the panic but still get a usable result.
13
Here’s a sneak peek of my code, where I showcase: 🔹 Moving Ownership — How one variable transfers ownership to another. 🔹 Function Ownership — How Rust manages ownership when passing values to functions. 🔹 Ownership Return
14
Token Address : 0xfd06A122141D611504d34DF2cCA01acF285D9A65 Token Sale Address : 0xDf03C739e8A9B1400B3E12A38a605854A29ea324 Let me know what you think! Any feedback or suggestions are welcome. 🚀 #Blockchain #Ethereum #SmartContracts #Solidity #ERC20 #TokenSale #Testnet #MetaMask
1
61
I’ve developed and deployed a Token Sale system on the Sepolia Testnet ! Here’s a quick summary of what I’ve built: ERC-20 Token (erc20.sol): Created a custom token MTK (3,000,000 tokens minted initially), designed for distribution in both presale and public sale phases.
1
54
Store the richest person address and the amount that person donated.
19