Comments (6)
@metagabbar Install @synapseprotocol/[email protected] and let me know if that fixes the issue.
from sdk.
@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.
@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.
@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.
@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.
@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)
- license HOT 2
- ESNext and CommonJS issue HOT 1
- Unique symbols for tokens HOT 8
- cronos new pool HOT 1
- Generated bridge transaction failing HOT 1
- Generated bridge transaction failing HOT 1
- support for coingecko ids HOT 1
- Explorer graph ql error
- Version ^0.95.1-alpha.66 returns zero in amountToReceive
- Dependency Dashboard
- checkCanBridge is private HOT 1
- Native tokenFrom causes an error in executeBridgeTokenTransaction HOT 7
- Add support for Cronos, Metis (New Chains), and Optimism gOHM HOT 1
- Error [ERR_REQUIRE_ESM]: Must use import to load ES Module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.