Coder Social home page Coder Social logo

Comments (6)

bleaker0x avatar bleaker0x commented on May 27, 2024

@metagabbar Install @synapseprotocol/[email protected] and let me know if that fixes the issue.

from sdk.

bholagabbar avatar bholagabbar commented on May 27, 2024

@metagabbar Install @synapseprotocol/[email protected] and let me know if that fixes the issue.

@bleaker0x Still get the following error:

synapse-api/testMethod.js
/synapse-api/node_modules/@ethersproject/logger/lib/index.js:199
        var error = new Error(message);
                    ^

Error: invalid address or ENS name (argument="name", value=1.0142272854538061e+48, code=INVALID_ARGUMENT, version=contracts/5.5.0)
    at Logger.makeError (/synapse-api/node_modules/@ethersproject/logger/lib/index.js:199:21)
    at Logger.throwError (synapse-api/node_modules/@ethersproject/logger/lib/index.js:208:20)
    at Logger.throwArgumentError (synapse-api/node_modules/@ethersproject/logger/lib/index.js:211:21)
    at /synapse-api/node_modules/@ethersproject/contracts/lib/index.js:93:32
    at step (synapse-api/node_modules/@ethersproject/contracts/lib/index.js:48:23)
    at Object.next (synapse-api/node_modules/@ethersproject/contracts/lib/index.js:29:53)
    at fulfilled (/synapse-api/node_modules/@ethersproject/contracts/lib/index.js:20:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  reason: 'invalid address or ENS name',
  code: 'INVALID_ARGUMENT',
  argument: 'name',
  value: 1.0142272854538061e+48
}


from sdk.

bleaker0x avatar bleaker0x commented on May 27, 2024

@metagabbar It looks like you might be passing an address as an actual hex integer value. Check and see if the address is wrapped in quotes (single or double).

It could also be something on my end, drop a link or gist to the file you're working with so I can take a look at what's being called and debug on my end as well

from sdk.

bholagabbar avatar bholagabbar commented on May 27, 2024

@metagabbar It looks like you might be passing an address as an actual hex integer value. Check and see if the address is wrapped in quotes (single or double).

It could also be something on my end, drop a link or gist to the file you're working with so I can take a look at what's being called and debug on my end as well

@bleaker0x Yeah, I think those args were wrong to return that error, but on fixing them the SDK still returns

{
    "error": "TypeError: Cannot read properties of undefined (reading 'toString')"
}

Were you able to run the gist I pasted in the first comment of this issue ? You should be able to reproduce the error:
#106 (comment)

from sdk.

bleaker0x avatar bleaker0x commented on May 27, 2024

@metagabbar Just ran that as a test case; toString() doesn't seem to be being called anywhere that I can see, and the test ran fine. I'll dig a bit further, but what would also be super helpful for me is if you could try/catch that error and log its .cause and .stack properties + paste them here so I can see where the error is ultimately coming from when you're running that snippet.

Edit to add: humour me and try/catch the console.log too. I have a thought which might be dumb but it's still worth it to check.

from sdk.

bholagabbar avatar bholagabbar commented on May 27, 2024

@metagabbar It looks like you might be passing an address as an actual hex integer value. Check and see if the address is wrapped in quotes (single or double).

It could also be something on my end, drop a link or gist to the file you're working with so I can take a look at what's being called and debug on my end as well

Thanks @bleaker0x , investigated and it was a parsing issue on my end. Seems like certain fields are intermittently being sent/not sent.

For eg, gasPrice is sometimes sent as part of the response for buildBridgeTokenTransaction and sometimes not. I've removed the guarantees for this and 2 other fields (gasPriceLimit and chainId) on the API.

from sdk.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.