-
Notifications
You must be signed in to change notification settings - Fork 67
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Failed to deserialize Vec<FtColumn> for put_object: Custom("invalid value: integer 6616595
, expected variant index 0 <= i < 35")
#1330
Comments
|
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
|
Repo https://github.com/PaulZhemanov/fuel-counter-contract
|
When will you get some time to have a look and discuss it? |
|
It's ok, Thanks for the reply |
@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. |
That works for me, thanks |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Failed to deserialize Vec for put_object: Custom("invalid value: integer
6616595
, expected variant index 0 <= i < 35")Hello friends ☀️, In continuation of building the swaylend indexer on beta-4 after fixing issue #1328 I ran into another bug: after each log, I see output like the name on this issue, and after a few minutes it fails
After that, I tested the same stuff in a simple counter contract, but the error was the same
How to reproduce the bug on swaylend
Running of
fuel-indexer
serviceDeploying of the indexer
How to reproduce the bug on counter contract
Running of
fuel-indexer
serviceDeploying of the indexer
Toolchain
The text was updated successfully, but these errors were encountered: