-2

Here is my problem. I have a contract in solidity :

contract test {
    function testfunc(uint _number) external pure returns (bool) {
       return _number >= 0;
    }
}

Here is example :

enter image description here

This function retuns always false, even if I set a positive number... why ? it's not logic...

Do you have an explanation ?

Thanks for all,

Regards,

Thibaut
  • 54
  • 6

1 Answers1

0

example

it is returning true, try to redeploy the contract.

Abhinav
  • 81
  • 1
  • 4
  • I found the error.... if I deploy my contract on a specific address, it's not working. I have to deploy without indicate a specific address.... – Thibaut Nov 30 '22 at 08:15