I want to create contract, which will be able to store data like array of:
struct Funder {
address addr_first;
address addr_second;
}
How can I calculate gas fee for transactions which inserts additional Funder to my array ?
Should I pay more and gas for each insertion or I should always pay a fix gas price for all insertions to my storage ?
For example, if I have to pay 10 Gas for first insertion, how many gas should I pay when I'll have thousands of Funders and want to insert another one?
If I replace an array, does it cost me to replace the array for every element in the array or is it one SSTORE operation for the whole batch?
– commercium.sys Sep 14 '19 at 22:02