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 ...

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