current position:Home>There is a very long array to be traversed in the contract, such as 10 million data, but it may be changed to two in practice. Then execute this method. Will gas limit out of

There is a very long array to be traversed in the contract, such as 10 million data, but it may be changed to two in practice. Then execute this method. Will gas limit out of

2022-02-03 23:13:35 Q & A of Denglian community




Take the answer 1:

It will be , You should use mapping Replace array .




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032313343943.html

Random recommended