Hi Fuel team!
I got a problem with docoding contract event(with fuels-ts 0.94.6):
[21:18:23.649] ERROR (41038): error decoding event
chainId: 0
logType: "Block Range Query"
workerType: "HyperFuel"
fromBlock: 0
toBlock: 10800059
addresses: [
"0xafb6691ff311bb66067486481d7400d01faeef2f291fcfdda514e82d7230d027"
]
fetchStateRegister: "root"
blockNumber: 10782769
logIndex: 1
responsible event: {
"blockHeight": 10782769,
"blockTimestamp": 1726752468,
"contractId": "0xafb6691ff311bb66067486481d7400d01faeef2f291fcfdda514e82d7230d027",
"receipt": {
"blockHeight": 10782769,
"data": "0x0000000000989680336b7c06352a4b736ff6f688ba6885788b3df16e136e95310ade51aa32dc6f0500000000000000001ef4ca23f77ddd39400e32199f1e7e4a85dff2067a850ee0944ed6ece25c30fe00000000000000000000000000989680",
"ra": 0,
"rb": 12590297951544648000,
"receiptIndex": 1,
"receiptType": 6,
"rootContractId": "0xafb6691ff311bb66067486481d7400d01faeef2f291fcfdda514e82d7230d027",
"txId": "0x53d5c59000376e46cfac78be0d49b906bcd6b109bacc3310b32716b4aac98bdc",
"txStatus": 0
},
"receiptIndex": 1,
"receiptType": 6,
"transactionId": "0x53d5c59000376e46cfac78be0d49b906bcd6b109bacc3310b32716b4aac98bdc"
}
[21:18:23.651] ERROR (41038): Failed to parse event with Fuel, please double check your ABI.
chainId: 0
logType: "Block Range Query"
workerType: "HyperFuel"
fromBlock: 0
toBlock: 10800059
addresses: [
"0xafb6691ff311bb66067486481d7400d01faeef2f291fcfdda514e82d7230d027"
]
fetchStateRegister: "root"
blockNumber: 10782769
logIndex: 1
err: {
"type": "_FuelError",
"message": "Invalid u64 byte data size.",
"stack":
FuelError: Invalid u64 byte data size.
at BigNumberCoder.decode (/Users/master/spark-envio-indexer/generated/src/bindings/vendored-fuel-abi-coder.js:453:13)
at /Users/master/spark-envio-indexer/generated/src/bindings/vendored-fuel-abi-coder.js:955:41
at Array.reduce (<anonymous>)
at _c.decode (/Users/master/spark-envio-indexer/generated/src/bindings/vendored-fuel-abi-coder.js:952:51)
at /Users/master/spark-envio-indexer/generated/src/bindings/vendored-fuel-abi-coder.js:955:41
at Array.reduce (<anonymous>)
at _c.decode (/Users/master/spark-envio-indexer/generated/src/bindings/vendored-fuel-abi-coder.js:952:51)
at /Users/master/spark-envio-indexer/generated/src/bindings/vendored-fuel-abi-coder.js:955:41
at Array.reduce (<anonymous>)
at _c.decode (/Users/master/spark-envio-indexer/generated/src/bindings/vendored-fuel-abi-coder.js:952:51)
"VERSIONS": {
"FORC": "0.63.5",
"FUEL_CORE": "0.35.0",
"FUELS": "0.94.6"
},
"metadata": {},
"rawError": null,
"code": "decode-error",
"name": "FuelError"
}
We recently had a similar problem and it was resolved with the release of fuels-ts 0.94.6:
it seems that the problem now is decoding the Account struct.
Could you please fix this and give us feedback? Thanks!!!
p.s. to visualize the changes on the Envio indexer side I created a pr: