-
Failed to deserialize Vec for put_object: Custom("invalid value: integer
|
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
|
Beta Was this translation helpful? Give feedback.
-
I just commented # type Block @entity {
# id: ID!
# height: UInt8!
# hash: Bytes32! @unique
# }
# type Transaction @entity {
# id: ID!
# block: Block! @join(on:hash)
# hash: Bytes32! @unique
# }
# type Increment @entity {
# id: ID!
# caller: Identity!
# counter: UInt8!
# timestamp: UInt8!
# }
And left only extern crate alloc;
use fuel_indexer_utils::prelude::*;
#[indexer(manifest = "counter_indexer.manifest.yaml")]
pub mod counter_indexer_index_mod {
fn handle_block(block: BlockData) {
let height = block.height;
let txs = block.transactions.len();
info!("🧱 Block height: {height} | transacrions: {txs}");
}
// fn handle_increment_params(data: IncrementParams) {
// Logger::info(format!("✨ IncrementParams: {:#?}", data).as_str());
// let increment = Increment {
// id: SizedAsciiString::try_from(data.counter.to_string()).unwrap(),
// caller: data.caller,
// counter: data.counter,
// timestamp: data.timestamp,
// };
// increment.save();
// }
} restarted the whole system
And redeployed the indexer
And output is the same
|
Beta Was this translation helpful? Give feedback.
-
Repo https://github.com/PaulZhemanov/fuel-counter-contract
|
Beta Was this translation helpful? Give feedback.
-
When will you get some time to have a look and discuss it? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
It's ok, Thanks for the reply |
Beta Was this translation helpful? Give feedback.
-
Hey @chlenc! I'm back from vacation and getting back to work. @ra0x3 and I will discuss this today and we'll see what needs to be done. Thanks for being patient! |
Beta Was this translation helpful? Give feedback.
-
@chlenc Took a proper look at the branch that you supplied. It looks like your Also, I see that the manifest in your branch uses a Please try those changes and let me know if they resolve your issue. |
Beta Was this translation helpful? Give feedback.
-
That works for me, thanks |
Beta Was this translation helpful? Give feedback.
@chlenc Took a proper look at the branch that you supplied. It looks like your
Cargo.lock
file usesfuel-indexer-utils v0.20.4
instead of the most recent available version. If you change the dependency to use at leastv0.20.7
, the indexer will build and progress past the problem block.Also, I see that the manifest in your branch uses a
contract_id
that isn't in thefuel...
format and instead uses0x...
. Once a version containing #1326 is merged, you will be able to use both formats but until then, you must use thefuel...
format for contract IDs if you wish to index a particular contract.Please try those changes and let me know if they resolve your issue.