Skip to content

BUG: Returned values aren't valid #1

Description

@firepol

Hi, please try the react example in this repo.

In the Form.tsx file

After const wrappedTrades = await (sdk.crossChain.calculateTrade(fromToken, String(amount), toToken))

Add: console.log(wrappedTrades)

Try to calculate a swap between BNB and Polygon, amount 1.

I get in the browser console a bunch of errors with trade set to null.

image

Errors for all trades:

Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.

Are you experiencing some issues right now or...?

I think a few days ago it was working...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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