...
---
The account has not been funded on chain yet. To fund the account and get APT on testnet you must visit https://aptos.dev/network/faucet?address=0xc327fa8bef56e4a0d1d82d6fdac8ddf4e0d31a907836810081cffa67c21601ee
Press [Enter] to go there now >
{
"Result": "Success"
}
hello_aptos/p...
... // 只要 Bank 合约有资金,就持续调用 withdraw
// and the attacker wants to withdraw (e.g., 1 ether per re-entry).
// 并且攻击者想要提款(例如,每次重入 1 以太币)。
if (address(bank).balance >= 1 ether) {
bank.withdraw(1 eth...