Gas estimation errored
Opened this issue · 0 comments
xoxoj commented
What is it?
Gas estimation errored
Problem
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Internal JSON-RPC error.
Solution
Describe the solution to the above stated problem.
Steps to implement
using Array256Lib for uint256[];
uint256[] arr_;
`function test(uint256 _testnb)
public
payable
{
uint256 v_ = msg.value;
numOfaddr_[_testnb] = msg.sender;
uint256 _ss = generateRandom();
arr_.push(_ss);
arr_.heapSort();
emit onALib(arr_.getMax());
}`
remix 0.4.24