Skip to content

Can't call vyper-run with reference types, bool, decimal #23

Description

@NikitaMishin

If this is a bug report, please fill in the following sections.
If this is a feature request, delete and describe what you would like with examples.

What was wrong?

  1. True not recognized as book
  2. can't pass lists to vyper-run as custom type

Or I should this in another way?
For list I write [1,2,3...]
For custom type { ...}
For bool True/False

Also cannot pass decimal

Code that produced the error

CODE_TO_REPRODUCE 

Call any function with following signatures:
@public
def test(art:int128[10]):
self.t = art[0]

Full error output

ERROR_HERE 

Expected Result

This section may be deleted if the expectation is "don't crash".

EXPECTED_RESULT

Environment

# run this:
$ python -m eth_utils

# then copy the output here:
OUTPUT_HERE

How can it be fixed?

I think it's not handled when python parse arguments.
If it's really error when parse then it could relatively quickly be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions