Skip to content

Gas estimation errored #93

@xoxoj

Description

@xoxoj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions