Expert Q&A
Ask Peera community experts
Posts
952- Expert Q&AForCyfrin UpdraftJan 04, 2025
Foundry Solidity Test
What could wrong in my code? function testFundUpdatesFundedDataStructure() public { fundMe.fund{value: 10e18}(); uint256 amountFunded = fundMe.getAddressToAmountFunded(address(this)); assertEq(amountFunded, 10e18); } getting this error: [14658] FundMeTest::testFundUpdatesFundedDataStructure() ├─ [2658] FundMe::fund{value: 1000000000000000000}() │ ├─ [0] 0x0000000000000000000000000000000000000000::latestRoundData() [staticcall] │ │ └─ ← [Stop] │ └─ ← [Revert] EvmError: Revert └─ ← [Revert] EvmError: Revert
- Cyfrin Updraft
- Foundry
- Solidity
13 - Expert Q&AForCyfrin UpdraftDec 19, 2024
Zksync Foundry Install
seems the zksync foundry installation, isn't in the github repo anymore, i tried to type the command line into my terminal "permission denied, could not read from remote repository"
- Cyfrin Updraft
- Foundry
- Solidity
12 - Expert Q&AForCyfrin UpdraftDec 14, 2024
Setting up SimpleStorage Deployer
Why do i keep getting this error when trying to deploy my code in VS code, asked AI and it's still the same. Here is the error: [⠊] Compiling... [⠢] Compiling 14 files with Solc 0.8.18 [⠆] Solc 0.8.18 finished in 149.20ms Error: Compiler run failed: Error (2314): Expected ';' but got identifier --> script/DeploySimpleStorage.s.sol:11:9: | 11 | vm.stopBroadcast(); | ^^ And here is my code. solidity ''' // SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import {Script} from "forge-std/Script.sol"; import {SimpleStorage} from "../src/SimpleStorage.sol"; contract DeploySimpleStorage is Script { function run() external returns (SimpleStorage) { vm.startBroadcast(); SimpleStorage simpleStorage = new SimpleStorage(); vm.stopBroadcast(); return simpleStorage; } } '''
- Cyfrin Updraft
- Foundry
- Solidity
11 - Expert Q&AForCyfrin UpdraftDec 12, 2024
Setting Foundry
While trying to set my foundry after installing using the "forge init" command, i got this error: Error: failed to commit (code=Some(128), stdout="", stderr="Author identity unknown\n\n* Please tell me who you are.\n\nRun\n\n git config --global user.email \"you@example.com\"\n git config --global user.name \"Your Name\"\n\nto set your account's default identity.\nOmit --global to set the identity only in this repository.\n\nfatal: unable to auto-detect email address (got 'user@MACs-MBP.(none)')") Though I was able to get all the folder I needed, except from "lib" and ".gitmodules" hope this won't affect me in future. And i also try using the "forge init --force" still the same
- Cyfrin Updraft
- Foundry
- Solidity
12 - Expert Q&AForPeera MetaDec 04, 2024
Getting started with peera
Hello, i'm new here. Just want to know how to improve my reputaion. Because i am trying to comment and like some post but i can't because my reputation are low. This is my first post here. And also, i am a beginner learning solidity on cyfrin updraft so i guess i will be using this platform alot, Thank you community.
- expert q&a
- tutorial
- reputation
- reward
22 Clarification on Polygon PoS Mainnet Gas Fees
Should I pass a 30 gwei priority fee even if the mainnet gas station shows a lower value?
- Polygon PoS
- General
03- Expert Q&AForPolygonDec 02, 2024
Displaying Transactions for Contracts B, C, and D in Contract A
How can transactions for contracts B, C, and D be displayed under their respective internal transactions in contract A?
- Polygon PoS
- Smart Contract
17 Understanding Plasma and PoS Bridges in Ethereum-Polygon
What is a plasma bridge, and how does it differ from the PoS and burn/mint models for bridging Ethereum to Polygon?
- Polygon PoS
- General
04Sending USDCoins from Ethereum Wallet to PayPal with Moonpay
How can I send USDCoins from my Ethereum wallet to PayPal without MATIC for fees?
- General
14- Expert Q&AForPolygonNov 30, 2024
Recovering USDT Sent to Smart Contract on Polygon
How can USDT mistakenly sent to a smart contract address on Polygon be recovered?
- Polygon PoS
- Smart Contract
12
- 2565
- 1780
- 402
- 397
- 369
- 328
- 225
- 211
- 188
- 158
- The Graph
- Aave Protocol
- discussion
- Solidity
- Subgraph
- Smart Contract
- GraphQL
- blockchain
- Query
- Indexers