Open chlenc opened 7 months ago
still, I did storage of i64 using strings
@chlenc
I64
is an indexer scalar typeI64
in your indexer moduleimpl I64
line 4 and the error should be resolved@chlenc
"This is a reserved name"
@chlenc
Here is a list of reserved names
We enforce this in things like GraphQL schema and ABI JSON
However we didn't enforce this in the entire Rust module because we didn't think it would happen
We can update with an error to say
"This is a reserved name"
removed I64 impl
on lines 4-8 and now have this error
If trying to make .into()
have this error
@chlenc
I64
why are you trying to convert it into a String
? Why not just use I64
in your schema? Is there a problem with that? @chlenc
- To be clear, these issues are because of your incorrect usage of Rust, not because of the indexer (just want to make that clear)
- If the value is an
I64
why are you trying to convert it into aString
? Why not just useI64
in your schema? Is there a problem with that?
I'm trying to use I64, but it gives the next error to me
How to store I64 on indexer?
Hi guys, in my indexer I am going to store values with I64 type, on my contract, I have custom I64, I try to do like here but, I am having that error on indexer's lib.rs file
Looks like in the explorer example you are using I64 from sway libs, and I need to add some code to allow usage of my custom I64 standard
toolchain