Skip to content

Passing an array as a param, getting wrong output #770

Closed
@joeykrug

Description

@joeykrug

So I have two examples here, one that works w/ expected behavior and one that, well, doesn't, and I'm not sure why.

def createMarket(events:arr): return(events[0])
^ is the working example, if called with a number like -37117353667364131058659323780745282444029701754006041568106926382588839136039 it will return -37117353667364131058659323780745282444029701754006041568106926382588839136039.

def createMarket(branch, description:str, alpha, initialLiquidity, tradingFee, events:arr): return(events[0])

^ However, when passed -37117353667364131058659323780745282444029701754006041568106926382588839136039 in the events array ends up returning 191247688059959, when it should be returning -37117353667364131058659323780745282444029701754006041568106926382588839136039

I've made sure the abi description has the second string param set to bytes per usual when dealing w/ strings, so the abi seems correct.

To add to the weirdness --- this works fine in pyethereum, so I don't think it's a serpent issue

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