to push item to array use .push() on array , in this way it's semms to work : myArray.push(i*2); ;)


If I understand your idea correctly. You'd like to have a contract (addr X) which has a custom filter for receiving transactions. In case if transactions coming from specific address (addr A) values automatically forwarding to (addr Y). // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; contract Tranfer { // address X event ...


Yes, I think this update came along with solidity 0.6.0 this.balance should be replaced with address(this).balance Hope this helps

Only top voted, non community-wiki answers of a minimum length are eligible