Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Saving Table with FixedString32 #475

@michaeljyeates

Description

@michaeljyeates

I am writing a simple test contract which saves a struct with (Name,char[32]). Saving seems to work ok but when I try to read nothing is returned and eosc get table dbtest dbtest test fails with the following error. Attached is a simple test case, I think the length of 40 is correct so I am not sure why it has a negative over figure

1377035ms thread-0 main.cpp:906 main ] Failed with error: 10 assert_exception: Assert Exception
status_code == 200: Error
: 8 out_of_range_exception: Out of Range
read datastream of length 40 over by -30
{"method":"read","len":40,"over":-30}
thread-0 datastream.cpp:6 throw_datastream_range_error

{"msg":"8 out_of_range_exception: Out of Range\nread datastream of length 40 over by -30\n    {\"method\":\"read\",\"len\":40,\"over\":-30}\n    thread-0  datastream.cpp:6 throw_datastream_range_error"}
thread-0  httpc.cpp:113 call

{"server":"localhost","port":8888,"path":"/v1/chain/get_table_rows","postdata":{"json":true,"scope":"dbtest","code":"dbtest","table":"test"}}
thread-0  httpc.cpp:117 call

dbtest.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions