Skip to content

error: Address "undefined" is invalid. - Address must be a hex value of 20 bytes #164

@Aviksaikat

Description

@Aviksaikat

Summary

When called with the following parameters, I got the following error with data

Data

{'data_store_address': '0x2F0b22339414ADeD7D5F06f9D604c7fF5b2fe3f6', 'market_addresses': ['0xB7e69749E3d2EDd90ea59A4932EFEa2D41E245d7', '0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB', '0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB', '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E'], 'token_prices_tuple': [[1593780112482224, 1593678500000000], [1593780112482224, 1593678500000000], [1000090000000000000000000, 999993815188487600000000]], 'token_in': '0xaf88d065e77c8cC2239327C5EDb3A432268e5831', 'token_amount_in': 6743542, 'ui_fee_receiver': '0x0000000000000000000000000000000000000000'}
0x53f81711000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000b7e69749e3d2edd90ea59a4932efea2d41e245d7

When I tried using Explorer, I got this
contract: https://snowtrace.io/address/0x618fCEe30D9A26e8533C3B244CAd2D6486AFf655/contract/43114/readContract?chainid=43114

Image

Error: Address "undefined" is invalid. - Address must be a hex value of 20 bytes (40 hex characters). -  
Address must match its checksum counterpart. Version: viem@2.24.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions