getFund单元测试金额不对
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- solidity
- Área
- blockchain, testing-qa
Línea de trabajo
Start by repeatedly running the two getFund unit tests shown in the issue, including the time increase and mining steps, and compare their state between runs. Trace the fund amount and contract state across these tests; done means the tests run consistently and the successful withdrawal emits the expected 1 ether amount.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
我的本地运行getFund函数测试时,时不时提示金额不对,按照金额推断应该是上个场景测试影响到了,但是找不到原因,有谁知道大概是哪方面的问题
` it("window close,target not reached, getFund faild",
async function () {
await fundMe.fund({ value: ethers.parseEther("0.1") })
//make sure the window is closed
await helpers.time.increase(200)
await helpers.mine()
await expect(fundMe.getFund())
.to.be.revertedWith("target not reached")
}
)
//提示金额不对
it("window close,target reached, getFund success",
async function () {
await fundMe.fund({ value: ethers.parseEther("1") })
//make sure the window is closed
await helpers.time.increase(200)
await helpers.mine()
await expect(fundMe.getFund())
.to.emit(fundMe, "FundWithdrawByOwner")
.withArgs(ethers.parseEther("1"))
}
)`
- Lenguaje dominante
- Solidity
- Estrellas
- 1.5k
- Forks
- 383
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de smartcontractkit/Web3_tutorial_Chinese
-
第三节问题 Mapping 问题Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 25/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 15/100
-
hardhat 部署问题Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 10/100
smartcontractkit/Web3_tutorial_Chinese#96 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
smartcontractkit/Web3_tutorial_Chinese#94 · 1 comentario ·
-
我在第六课中进行编译时总是提示我未安装open zeppelin/[email protected],但实际上我已经安装,并且缺少一个名为ccipReceive.sol的文件,具体问题如下图Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 20/100
smartcontractkit/Web3_tutorial_Chinese#93 · 6 comentarios ·
Todos los issues de smartcontractkit/Web3_tutorial_Chinese
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
icon-project/sodax-sdks#696 ·
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
th30d4y/OpenLearnX#737 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
btclib-org/btclib-node#2656 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
hiero-ledger/hiero-sdk-js#4832 ·
Los mantenedores suelen responder en 1 día
-
Bigint RPC params are sent as strings when the application defines BigInt.prototype.toJSONPosiblemente ocupada @andreisilviudragnea la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día