Writing a Web3.js Program that can Clear an array on the BSC Blockchain by looping through a function.
Budget: $10 – $30 USD
I have a made a mistake in a token I launched and need to fix it. The issue is that I am not sure about the gas cost of clearing it and would like a simple application written that could clear an array of over 70000. The issue is clearing this array takes a massive amount of gas. I can pay the gas but how would I call the function. The contract had issues.
Heres the contract address on binance smart chain: 0xBa07EED3d09055d60CAEf2bDfCa1c05792f2dFad
The array: _sellHistories
The function that would do this: _removeOldSellHistories
I should have had the code audited but was rushed. Due to the projects success I am unable to redeploy. The public function that calls this array is the transfer function. I would like to clear the array completely then I can edit the settings to keep the array small. I can change any variable in the contract that you would like.
Heres the contract address on binance smart chain: 0xBa07EED3d09055d60CAEf2bDfCa1c05792f2dFad
The array: _sellHistories
The function that would do this: _removeOldSellHistories
I should have had the code audited but was rushed. Due to the projects success I am unable to redeploy. The public function that calls this array is the transfer function. I would like to clear the array completely then I can edit the settings to keep the array small. I can change any variable in the contract that you would like.