Cyfrin Updraft.

P&R expertos

Consulta a los expertos de la comunidad de Cyfrin Updraft

Publicaciones

191
  • thegreatfeez.
    Feb 25, 2025
    P&R expertos

    Nodo en ejecución con VPS

    Necesito entender algo.. Compré un VPS para ejecutar un nodo. Y según el hilo de Twitter que seguí, usamos Termius. Pero, ¿por qué tengo que mantener mi terminal encendido y conectado a Internet para seguir ejecutando el nodo a través del VPS? Si bien la esencia principal de mi compra de VPS es poder ejecutar el nodo mientras mi PC no funciona

    • Cyfrin Updraft
    • DeFi
    • Blockchain
    0
    1
  • 0xe85d...ab53.
    Jan 30, 2025
    P&R expertos

    Implementaciones en la capa 1

    He aprendido a implementar un contrato inteligente simple en una red de prueba con Remix. ¿Cuál es el procedimiento de mejores prácticas para implementar un protocolo DeFi en cualquier red de capa 1 o 2? ¿Usas Remix, utilizas alguna CLI o alguna otra alternativa? ¿Alguno de ellos es más seguro que el otro? ¿y por qué se opta por ese procedimiento frente a los otros 2? Por ejemplo, cuando el equipo de Uniswap implementó el código de Uniswap en la capa 1 de Ethereum, ¿cómo implementó el código? Gracias

    • Cyfrin Updraft
    • Blockchain
    • Smart Contract
    0
    1
  • thegreatfeez.
    Jan 04, 2025
    P&R expertos

    Prueba de solidez en fundición

    ¿Qué puede estar mal en mi código? function testFundUpdatesFundedDataStructure() public { fundMe.fund{value: 10e18}(); uint256 amountFunded = fundMe.getAddressToAmountFunded(address(this)); assertEq(amountFunded, 10e18); } recibiendo este error: [14658] FundMeTest: :testFundUpdatesFundedDataStructure () ├─ [2658] FundMe: :fund {valor: 1000000000000000000} () │ ├─ [0] 0x00000000000000000000000000000000: :latestRoundData () [llamada estática] │ │ ─ ← [Detener] │ ─ ← [Revertir] evmError: Revertir ─ ← [Revertir] evmError: Revertir

    • Cyfrin Updraft
    • Foundry
    • Solidity
    1
    3
  • thegreatfeez.
    Dec 19, 2024
    P&R expertos

    Instalación de Zksync Foundry

    parece que la instalación de zksync foundry ya no está en el repositorio de github, intenté escribir la línea de comando en mi terminal «permiso denegado, no se pudo leer desde el repositorio remoto»

    • Cyfrin Updraft
    • Foundry
    • Solidity
    1
    2
  • thegreatfeez.
    Dec 14, 2024
    P&R expertos

    Configuración de SimpleStorage Deployer

    ¿Por qué me sigue apareciendo este error cuando intento implementar mi código en VS Code? Pregunté a AI y sigue igual. Este es el error: [] Compilando... [] Compilando 14 archivos con Solc 0.8.18 [] Solc 0.8.18 finalizó en 149,20 ms Error: no se pudo ejecutar el compilador: Error (2314): se esperaba un ';' pero se obtuvo el identificador --> Script/DeploySimpleStorage.s.sol: 11:9: | 11 | vm.stopBroadcast (); | ^^ Y aquí está mi código. solidity «' //Identificador de licencia SPDX: MIT pragma solidity ^0.8.18; importar {Script} desde «Forge-std/Script.sol»; importar {SimpleStorage} desde «.. /src/SimpleStorage.sol «; contract DeploySimpleStorage es Script { function run () retornos externos (SimpleStorage) { vm.startBroadcast (); SimpleStorage SimpleStorage = nuevo SimpleStorage (); vm.stopBroadcast (); devuelve SimpleStorage; } } «'

    • Cyfrin Updraft
    • Foundry
    • Solidity
    1
    1
  • thegreatfeez.
    Dec 12, 2024
    P&R expertos

    Setting Foundry

    Al intentar configurar mi Foundry después de la instalación con el comando «forge init», aparece este error: Error: error al confirmar (code=some (128), stdout= "», stderr="Identidad del autor desconocida\n\n*Por favor, dime quién eres. \n\nEjecuta\n\ngit config --global user.email\» you@example.com\»\ngit config --global user.name\ "Tu nombre\»\n\npara establecer la identidad predeterminada de tu cuenta. \nOmite --global para establecer la identidad solo en este repositorio. \n\nfatal: no se puede detectar automáticamente la dirección de correo electrónico (tengo 'user @MACs -MBP. (ninguno) ')») Aunque pude obtener toda la carpeta que necesitaba, excepto «lib» y «.gitmodules», espero que esto no me afecte en el futuro. Y también intento usar el «forge init --force», que sigue siendo el mismo

    • Cyfrin Updraft
    • Foundry
    • Solidity
    1
    2
  • Cyfrin Moderator Pst.
    Mar 29, 2024
    P&R expertos

    What are the recommended protocols for smart contract audit?

    I am looking to conduct a smart contract audit and would like to know the best protocols to follow. Can anyone suggest a wide range of protocols that are commonly used in competitive audits? Any insights or recommendations would be greatly appreciated. Thank you.

    • Foundry
    • Security
    • Blockchain
    0
    1
    Respuesta Oficial
  • Cyfrin Moderator Pst.
    Mar 29, 2024
    P&R expertos

    Error `make deploy` in VS Code - `bash: make: command not found`

    I am encountering an issue while trying to deploy using make deploy in VS Code with Foundry and Anvil. Despite Anvil launching properly without any errors, when I attempt to deploy using the command make deploy, I consistently receive the error message bash: make: command not found. Has anyone faced a similar problem or can provide guidance on resolving this issue? Any assistance would be greatly valued as I have been unable to progress since yesterday. Thank you.

    • Foundry
    0
    1
    Respuesta Oficial
  • Cyfrin Moderator Pst.
    Mar 29, 2024
    P&R expertos

    Which function selector and input data should be used in solveChallenge?

    I am working on the solveChallenge function which requires a function selector and input data to be passed. I am unsure about which function I should get the function selector for, and what the input data should be that needs to be turned into bytes. Any guidance on this would be greatly appreciated. Thank you in advance for your help. function solveChallenge(bytes4 selectorOne, bytes memory inputData, string memory yourTwitterHandle) external { (bool successOne, bytes memory responseDataOne) = i_helperContract.call(abi.encodeWithSelector(selectorOne)); if (!successOne || uint256(bytes32((responseDataOne))) != 1) { revert S1__WrongSelector(); } (bool successTwo, bytes memory responseDataTwo) = i_helperContract.call(inputData); if (!successTwo || uint256(bytes32((responseDataTwo))) != 1) { revert S1__WrongData(); } _updateAndRewardSolver(yourTwitterHandle); } I am motivated to understand how to find the solution, not just for obtaining the NFT. Thank you for your assistance.

    • Transaction
    • Solidity
    • Smart Contract
    0
    1
    Respuesta Oficial
  • Cyfrin Moderator Pst.
    Mar 29, 2024
    P&R expertos

    How to Report Multiple Instances of an Attack Vector in Base Code?

    I have encountered the same attack vector multiple times in a base code. Should I include each instance separately in my report or consolidate them into a single entry? For instance, if I identify a Denial of Service (DOS) attack in three different functions, should I classify these findings as three distinct high-severity issues in my report, or combine them into a single report entry for efficiency and clarity? Any insights on the best approach for reporting such repeated vulnerabilities would be greatly appreciated. Thank you.

    • Security
    0
    1
    Respuesta Oficial
Sui.X.Peera.

Gana tu parte de 1000 Sui

Gana puntos de reputación y obtén recompensas por ayudar a crecer a la comunidad de Sui.

Etiquetas principales
  • Solidity
  • Smart Contract
  • Transaction
  • Foundry
  • Blockchain
  • Security
  • Gas
  • Cyfrin Updraft
  • Course
  • erc20
Usamos cookies para asegurarnos de que obtenga la mejor experiencia en nuestro sitio web.
Más información