Skip to content

Unable to decode int #25

@hswick

Description

@hswick

Receiving this error when I try to output an int from a contract method:

** (RuntimeError) Unsupported decoding type: {:int, 256}
    lib/abi/type_decoder.ex:241: ABI.TypeDecoder.decode_type/2
    lib/abi/type_decoder.ex:219: anonymous fn/2 in ABI.TypeDecoder.decode_type/2

Here is a contract method that I'm failing on:

    function getInt() public pure returns (int) {                                                                                                                      
        return (40 - 100);                                                                                                                                             
    }

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