dashevo / js-dash-sdk

DEPRECATED Dash client-side library for wallet payment/signing and application development. (Wallet, DAPI, Primitives, BLS, ...)
https://dashevo.github.io/platform/SDK/
MIT License
36 stars 21 forks source link

v19: Error running platform.names.resolveByRecord() in browser #221

Closed ghost closed 3 years ago

ghost commented 3 years ago

When i run this code in browser

console.log(await sdk.platform.names.resolveByRecord('dashUniqueIdentityId', '6KofS1fhpLU7RhekrvemTKRzLG48551xZm3PmSWZrH4o'))

i am getting

{code: 3, message: "Invalid query: should be string", metadata: {…}}

When i run it in node on console it will return the correct username 'dappuser'.

It can be tested running Chrome Wallet and "importing an mnemonic" with existing username. This line will be executed and error comes up: https://github.com/readme55/Dash-Chrome-Wallet/blob/master/app/background.js#L398

antouhou commented 3 years ago

Hey! We've made one more bugfix release of the SDK - 3.19.4, can you please try it out?

antouhou commented 3 years ago

Report from the discord saying that 3.19.4 indeed fixed the issue.