wampire icon indicating copy to clipboard operation
wampire copied to clipboard

Example endpoint does not handle argument types correctly

Open NeoVance opened this issue 6 years ago • 1 comments

Running endpoint example and api_user example, the addition example is not able to parse it's arguments correctly.

Enter a command (or type "help")
add 10,10
Error: CallError { reason: InvalidArgument, args: Some([String("Expected integer, got 10")]), kwargs: None }

NeoVance avatar Feb 26 '19 19:02 NeoVance

I'm seeing this too, but noticed that passing in negative numbers works. For example, add -1,-1 in the api_user example works for me. Not sure where positive integers are getting set to UnsignedInteger.

Also unsure how to get an UnsignedInteger out of ArgList, although maybe that's a different issue.

thebeekeeper avatar Mar 04 '20 12:03 thebeekeeper