I have a method in a contract which returns a uint:

    function numberTest() public pure returns(uint) {
        return 10;

However when I call the method from my React component it returns as a string.

To the best of my knowledge the returned value should be:

BigNumber { s: 1, e: 1, c: [ 10 ] }

Anyone have any idea what the deal is?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.