pragma solidity ^0.5.2;
contract heyue {
function plzz(address payable[] memory dizhi,uint256 shuliang) public payable {
for(uint i = 0; i < dizhi.length; i++)
{
dizhi[i].transfer(shuliang);
}
}
}
0xc5b4ca227520c5a024f1fec6f41707fb4bebcc102cffffe35d7f913b954d3385
这是哈希,转账了17个地址,gas总共用了582891,平均下来每个地址用了34000多,但是单地址转账也才21000,都说合约转账能省gas,这是链的问题还是代码问题.