uint public highestBid; function test1() external { uint amount = highestBid; highestBid = 0; beneficiary.transfer(amount); }
当前的代码看上去是没问题的。
应该可以的