Skip to content

allow unit-style amounts in value field of FunctionCallDefinition #387

@zeroXbrock

Description

@zeroXbrock

Is your feature request related to a problem? Please describe.

when writing a scenario with a value declaration, I want to be able to write "1 eth" instead of 1000000000000000000

Describe the solution you'd like

Use something similar to parse_amount to parse value for FunctionCallDefinition and FunctionCallDefinitionStrict, but allow unit-less values (interpret bare integers as wei).

value should also be changed to an Option<U256> for FunctionCallDefinitionStrict, not sure why it isn't already

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions