You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
As you can see, I am unpacking all of the string items as a eosio::shared_memory<std::string_view>. Additionally, I am unpacking the float value amt_paid as a string as well. If I try unpacking as a float the code does not compile.
Here is the response I receive when I initiate the query:
The currency_paid field is empty however, the value that should be there (USD) appears to have bled over into the memo field in the first line \u0003USD
The amt_paid value is empty even though it is present in on-chain data
The memo appears to be a huge chunk of unicode encoded characters with data that appears to have bled over from the other fields.
I am sure this is an issue with how I am unpacking the data, I am just not sure how to unpack it properly.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Here is what my contracts table looks like:
And here is the data on chain:
Here is the struct my wasm-ql server is unpacking into:
and here is the struct that my server returns the data to the client in:
As you can see, I am unpacking all of the string items as a
eosio::shared_memory<std::string_view>
. Additionally, I am unpacking thefloat
valueamt_paid
as a string as well. If I try unpacking as afloat
the code does not compile.Here is the response I receive when I initiate the query:
The things to note here:
currency_paid
field is empty however, the value that should be there (USD) appears to have bled over into thememo
field in the first line\u0003USD
amt_paid
value is empty even though it is present in on-chain datamemo
appears to be a huge chunk of unicode encoded characters with data that appears to have bled over from the other fields.I am sure this is an issue with how I am unpacking the data, I am just not sure how to unpack it properly.
The text was updated successfully, but these errors were encountered: