Skip to content

Overflow converting to i32 error #204

@JavierTrujilloG

Description

@JavierTrujilloG

Hi there,
We are experiencing an overflow error across multiple chains. Here's an example for ethereum:

transaction 83f11ad653a9cdee52e54db2365947c61dd054af250f7fcf52240967eea4095a: Mapping aborted at ~lib/@graphprotocol/graph-ts/common/collections.ts, line 150, column 9, with message: overflow converting 0x0000000000000000000000000000000000000000000000000000000067e53c31 to i32
    wasm backtrace:
        0: 0x4b36 - <unknown>!~lib/@graphprotocol/graph-ts/chain/ethereum/ethereum.Value#toI32
        1: 0x6058 - <unknown>!src/common/getters/getOrCreateToken
        2: 0x7db5 - <unknown>!src/common/creators/createLiquidityPool
        3: 0x824e - <unknown>!src/mappings/Factory/handlePoolCreated
     in handler `handlePoolCreated` at block #19473885 (f4f2c65bcd633fd2b82a716f1de6315dbed65bb95218cbbd6140958a3fd46470)
Subgraph instance failed to run: transaction 83f11ad653a9cdee52e54db2365947c61dd054af250f7fcf52240967eea4095a
Mapping aborted at ~lib/@graphprotocol/graph-ts/index.ts, line 380, column 8
Message: Overflow converting 0x0000000000000000000000000000000000000000000000000000000067e53c31 to i32

Wasm backtrace:
0: 0x242a - <unknown>!~lib/@graphprotocol/graph-ts/index/ByteArray#toI32
1: 0x2536 - <unknown>!~lib/@graphprotocol/graph-ts/chain/ethereum/ethereum.Value#toI32
2: 0x2569 - <unknown>!src/types/Factory/ERC20/ERC20#try_decimals
3: 0x257b - <unknown>!src/utils/token/fetchTokenDecimals
4: 0x2b44 - <unknown>!src/mappings/factory/handlePoolCreated in handler `handlePoolCreated`
at block #19473885 (f4f2c65bcd633fd2b82a716f1de6315dbed65bb95218cbbd6140958a3fd46470)

Code: SubgraphSyncingFailure
Sgd: 25807
Subgraph_id: QmZeCuoZeadgHkGwLwMeguyqUKz1WPWQYKcKyMCeQqGhsF
Component: SubgraphInstanceManager
Subgraph error 1/1:
Code: SubgraphSyncingFailure
Error: Transaction 83f11ad653a9cdee52e54db2365947c61dd054af250f7fcf52240967eea4095a
Mapping aborted at ~lib/@graphprotocol/graph-ts/index.ts, line 380, column 8
Message: Overflow converting 0x0000000000000000000000000000000000000000000000000000000067e53c31 to i32

Wasm backtrace:
0: 0x242a - <unknown>!~lib/@graphprotocol/graph-ts/index/ByteArray#toI32
1: 0x2536 - <unknown>!~lib/@graphprotocol/graph-ts/chain/ethereum/ethereum.Value#toI32
2: 0x2569 - <unknown>!src/types/Factory/ERC20/ERC20#try_decimals
3: 0x257b - <unknown>!src/utils/token/fetchTokenDecimals
4: 0x2b44 - <unknown>!src/mappings/factory/handlePoolCreated in handler `handlePoolCreated`
At block #19473885 (block hash: 0xf4f2c65bcd633fd2b82a716f1de6315dbed65bb95218cbbd6140958a3fd46470)

SGD: 25807
Subgraph ID: QmZeCuoZeadgHkGwLwMeguyqUKz1WPWQYKcKyMCeQqGhsF
Component: SubgraphInstanceManager

Here’s the transaction.

This seems to also affecting https://info.uniswap.org/
It could be caused by this change ac71c01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions