Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions 57_Flashloan/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ contract UniswapV2FlashloanTest is Test {
}
```

在测试合约中,我们分别测试了手续费充足和不足的情况,你可以在安装Foundry后使用下面的命令行进行测试(你可以将RPC换成其他以太坊RPC)
在测试合约中,我们分别测试了手续费充足和不足的情况。请将`FORK_URL`替换为你自己的以太坊主网 RPC URL,不要依赖固定的公共节点

```shell
FORK_URL=https://singapore.rpc.blxrbdn.com
FORK_URL="https://your-ethereum-mainnet-rpc"
forge test --fork-url $FORK_URL --match-path test/UniswapV2Flashloan.t.sol -vv
```

Expand Down Expand Up @@ -352,10 +352,10 @@ contract UniswapV2FlashloanTest is Test {
}
```

在测试合约中,我们分别测试了手续费充足和不足的情况,你可以在安装Foundry后使用下面的命令行进行测试(你可以将RPC换成其他以太坊RPC)
在测试合约中,我们分别测试了手续费充足和不足的情况。请将`FORK_URL`替换为你自己的以太坊主网 RPC URL,不要依赖固定的公共节点

```shell
FORK_URL=https://singapore.rpc.blxrbdn.com
FORK_URL="https://your-ethereum-mainnet-rpc"
forge test --fork-url $FORK_URL --match-path test/UniswapV3Flashloan.t.sol -vv
```

Expand Down Expand Up @@ -482,10 +482,10 @@ contract UniswapV2FlashloanTest is Test {
}
```

在测试合约中,我们分别测试了手续费充足和不足的情况,你可以在安装Foundry后使用下面的命令行进行测试(你可以将RPC换成其他以太坊RPC)
在测试合约中,我们分别测试了手续费充足和不足的情况。请将`FORK_URL`替换为你自己的以太坊主网 RPC URL,不要依赖固定的公共节点

```shell
FORK_URL=https://singapore.rpc.blxrbdn.com
FORK_URL="https://your-ethereum-mainnet-rpc"
forge test --fork-url $FORK_URL --match-path test/AaveV3Flashloan.t.sol -vv
```

Expand Down
12 changes: 9 additions & 3 deletions Languages/en/57_Flashloan/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ function testFlashloan() public {

In the test contract, we tested the cases of sufficient and insufficient handling fees respectively. You can use the following command line to test after installing Foundry (you can change the RPC to another Ethereum RPC):

Set `FORK_URL` to your own Ethereum mainnet RPC URL instead of relying on a fixed public endpoint.

```shell
FORK_URL=https://singapore.rpc.blxrbdn.com
FORK_URL="https://your-ethereum-mainnet-rpc"
forge test --fork-url $FORK_URL --match-path test/UniswapV2Flashloan.t.sol -vv
```

Expand Down Expand Up @@ -353,8 +355,10 @@ function testFlashloan() public {

In the test contract, we tested the cases of sufficient and insufficient handling fees respectively. You can use the following command line to test after installing Foundry (you can change the RPC to other Ethereum RPC):

Set `FORK_URL` to your own Ethereum mainnet RPC URL instead of relying on a fixed public endpoint.

```shell
FORK_URL=https://singapore.rpc.blxrbdn.com
FORK_URL="https://your-ethereum-mainnet-rpc"
forge test --fork-url $FORK_URL --match-path test/UniswapV3Flashloan.t.sol -vv
```

Expand Down Expand Up @@ -483,8 +487,10 @@ function testFlashloan() public {

In the test contract, we tested the cases of sufficient and insufficient handling fees respectively. You can use the following command line to test after installing Foundry (you can change the RPC to another Ethereum RPC):

Set `FORK_URL` to your own Ethereum mainnet RPC URL instead of relying on a fixed public endpoint.

```shell
FORK_URL=https://singapore.rpc.blxrbdn.com
FORK_URL="https://your-ethereum-mainnet-rpc"
forge test --fork-url $FORK_URL --match-path test/AaveV3Flashloan.t.sol -vv
```

Expand Down
12 changes: 9 additions & 3 deletions Languages/pt-br/57_Flashloan/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ contract UniswapV2FlashloanTest is Test {

No contrato de teste, testamos cenários em que a taxa é suficiente e insuficiente. Você pode executar os testes com o Foundry utilizando o seguinte comando (pode trocar o RPC por outro fornecido pela Ethereum):

Defina `FORK_URL` como a URL do seu próprio RPC da mainnet Ethereum; não dependa de um endpoint público fixo.

```shell
FORK_URL=https://singapore.rpc.blxrbdn.com
FORK_URL="https://your-ethereum-mainnet-rpc"
forge test --fork-url $FORK_URL --match-path test/UniswapV2Flashloan.t.sol -vv
```

Expand Down Expand Up @@ -336,8 +338,10 @@ function testFlashloan() public {

No contrato de teste, testamos os casos de taxas de manuseio suficientes e insuficientes, respectivamente. Você pode usar a linha de comando a seguir para testar depois de instalar o Foundry (você pode alterar o RPC para outro RPC Ethereum):

Defina `FORK_URL` como a URL do seu próprio RPC da mainnet Ethereum; não dependa de um endpoint público fixo.

```shell
FORK_URL=https://singapore.rpc.blxrbdn.com
FORK_URL="https://your-ethereum-mainnet-rpc"
forge test --fork-url $FORK_URL --match-path test/UniswapV3Flashloan.t.sol -vv
```

Expand Down Expand Up @@ -466,8 +470,10 @@ function testFlashloan() public {

No contrato de teste, testamos os casos de taxas de manuseio suficientes e insuficientes, respectivamente. Você pode usar a linha de comando a seguir para testar depois de instalar o Foundry (você pode alterar o RPC para outro RPC Ethereum):

Defina `FORK_URL` como a URL do seu próprio RPC da mainnet Ethereum; não dependa de um endpoint público fixo.

```shell
FORK_URL=https://singapore.rpc.blxrbdn.com
FORK_URL="https://your-ethereum-mainnet-rpc"
forge test --fork-url $FORK_URL --match-path test/AaveV3Flashloan.t.sol -vv
```

Expand Down