You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: Assertion failed after funding a new wallet #328
However I just rechecked and I'm now getting this error instead. It happens before I'm given an address to be funded.
(I believe this specific issue has already been reported by @ICJR)
@SamKirby22 Updated dash dependency to use the latest version. I am now seeing RuntimeError: abort(both async and sync fetching of the wasm failed). Build with -s ASSERTIONS=1 for more info. after I fund a new testnet wallet with tDash.
@ICJR@HunterSides I launched the DDR-React project. Thank you for driving the Dash React App initiative - frontend Dash efforts are crucial for project development.
I reproduced the issue and I think that the underlying problem is that currently, dash SDK requires an extra webpack configuration that provides Node.JS polyfills for browsers. We are currently working out a solution for proper bundling for the web without the additional configuration to improve the developer experience.
Having in mind that you are working with the CRA, you can not alter your webpack config without the eject (which is not desirable).
Here's what I suggest to do as a workaround for now:
In @dash-incubator/dapp-sdk project:
Configure webpack.typescript.config.js to provide all required polyfills. This comment will help.
Add "browser": "./dist/dapp.js" to the package.json (This would make web-apps using dapp-sdk look for dapp.js bundle instead of the typescript build)
Build and publish to NPM
Update @dash-incubator/dapp-sdk in DDR-React to a newer version and try running app again.
If you need more PlatformProtocol essentials exposed, please let us know. For the first iteration we only did ones that used by our internal platform test suite.
Still receiving the errors above. I removed the node polyfill plugin provider, and updated dash npm to the latest version. Have you guys tested on another web app using just the dash npm package and a normal testnet platform connection?
Asking so I can just tear everything apart on my end to find the issue.
Received More than one instance of dashcore-lib found. Please make sure that you are not mixing instances of classes of the different versions of dashcore. used npm dedupe warning won't go away.
Also noticed the following endpoints /org.dash.platform.dapi.v0.Core/getStatus /org.dash.platform.dapi.v0.Core/subscribeToTransactionsWithProofs
Constantly take 60186ms to respond throwing a 503/504 error.
@ICJR dashcore-lib duplicate shouldn't cause this kind of an error.
As of getStatus - yes it is quite slow, it's sitting in our optimizations list. subscribeToTransactionsWithProofs is a stream, and it is expected to disconnect after a minute due to a nginx configuration of the masternode. (It reconnects afterwards)
From what I see this is some wasm issue (SDK internally uses wasm code), and probably related to a second layer of bundling in dapp-sdk.
So far we tested only dash -> Frontend app use case, but dash -> second-tier-wrapper -> Frondend app isn't covered yet.
We would appreciate any additional information and debugging of the case with the second tier wrappers for dash library. Will add it to our backlog.
Still receiving the errors above. I removed the node polyfill plugin provider, and updated dash npm to the latest version. Have you guys tested on another web app using just the dash npm package and a normal testnet platform connection?
Just reiterating ICJR here, I also still receive the errors after updating.
Activity
markin-io commentedon Apr 22, 2022
What is the version of
dashSDK is used? Can you also provide a link to the repo with@dash-incubator/dapp-sdkHunterSides commentedon Apr 28, 2022
@markin-io
Version 0.14.2 - https://github.com/dash-incubator/dapp-sdk
Required as a dependency in package.json - https://github.com/HunterSides/DDR-React/blob/main/package.json
Used here - https://github.com/HunterSides/DDR-React/blob/main/src/views/UploadPage.js
However I just rechecked and I'm now getting this error instead. It happens before I'm given an address to be funded.

(I believe this specific issue has already been reported by @ICJR)
markin-io commentedon Apr 29, 2022
@HunterSides thank you.
dash-incubator/dapp-sdkneeds to update Dash SDK to v3.22.3.From what I see, currently, the project is on 3.21.7
Perhaps the issue itself is better transferred to https://github.com/dash-incubator/dapp-sdk as well?
This is a side project from Dash Incubator, and we don't have an access to it.
SamKirby22 commentedon May 6, 2022
@HunterSides - am I right in saying "it looks like ICJR needs to update the dapp sdk - Dash SDK package to v3.22.3 from v3.21.7"?
SamKirby22 commentedon May 6, 2022
ICJR - any update here?
ICJR commentedon May 6, 2022
@SamKirby22 Updated dash dependency to use the latest version. I am now seeing
RuntimeError: abort(both async and sync fetching of the wasm failed). Build with -s ASSERTIONS=1 for more info.after I fund a new testnet wallet with tDash.markin-io commentedon May 13, 2022
@ICJR @HunterSides thank you for the provided details and updates, we added this to our backlog
markin-io commentedon May 20, 2022
@ICJR @HunterSides I launched the DDR-React project. Thank you for driving the Dash React App initiative - frontend Dash efforts are crucial for project development.
I reproduced the issue and I think that the underlying problem is that currently,
dashSDK requires an extra webpack configuration that provides Node.JS polyfills for browsers. We are currently working out a solution for proper bundling for the web without the additional configuration to improve the developer experience.Having in mind that you are working with the CRA, you can not alter your webpack config without the eject (which is not desirable).
Here's what I suggest to do as a workaround for now:
@dash-incubator/dapp-sdkproject:webpack.typescript.config.jsto provide all required polyfills. This comment will help."browser": "./dist/dapp.js"to thepackage.json(This would make web-apps using dapp-sdk look for dapp.js bundle instead of the typescript build)@dash-incubator/dapp-sdkinDDR-Reactto a newer version and try running app again.ICJR commentedon May 20, 2022
@markin-io
dapp-sdkis already providing the node polyfills during bundling https://github.com/dash-incubator/dapp-sdk/blob/main/webpack.typescript.config.js#L45 usingnode-polyfill-webpack-pluginmarkin-io commentedon May 27, 2022
@ICJR thank you. We're currently in progress with a proper SDK bundle for the web.
markin-io commentedon Jun 10, 2022
@ICJR please update
dashtov0.22.12and retest, you could also try getting rid of Node node polyfills if they were only used fordashSamKirby22 commentedon Jun 10, 2022
This one is for Hunter to check but would be good for ICJR to take a look too - as impacting both bounties.
markin-io commentedon Jun 10, 2022
Aha, all right. @HunterSides @ICJR please also check out a new section in the documentation about using primitives https://github.com/dashevo/platform/tree/master/packages/js-dash-sdk#primitives-and-essentials
If you need more PlatformProtocol essentials exposed, please let us know. For the first iteration we only did ones that used by our internal platform test suite.
ICJR commentedon Jun 10, 2022
@markin-io

Still receiving the errors above. I removed the node polyfill plugin provider, and updated dash npm to the latest version. Have you guys tested on another web app using just the dash npm package and a normal testnet platform connection?
Asking so I can just tear everything apart on my end to find the issue.
markin-io commentedon Jun 10, 2022
@ICJR yes, there it is
dash-react-starter-app.zip
ICJR commentedon Jun 10, 2022
@markin-io
Tried a few things still no luck
Received
More than one instance of dashcore-lib found. Please make sure that you are not mixing instances of classes of the different versions of dashcore.usednpm dedupewarning won't go away.Also noticed the following endpoints
/org.dash.platform.dapi.v0.Core/getStatus/org.dash.platform.dapi.v0.Core/subscribeToTransactionsWithProofsConstantly take 60186ms to respond throwing a 503/504 error.
markin-io commentedon Jun 17, 2022
@ICJR dashcore-lib duplicate shouldn't cause this kind of an error.
As of getStatus - yes it is quite slow, it's sitting in our optimizations list.
subscribeToTransactionsWithProofsis a stream, and it is expected to disconnect after a minute due to a nginx configuration of the masternode. (It reconnects afterwards)From what I see this is some wasm issue (SDK internally uses wasm code), and probably related to a second layer of bundling in dapp-sdk.
So far we tested only
dash->Frontend appuse case, butdash->second-tier-wrapper->Frondend appisn't covered yet.We would appreciate any additional information and debugging of the case with the second tier wrappers for
dashlibrary. Will add it to our backlog.markin-io commentedon Jun 17, 2022
For now to unblock your endeavor I might suggest using
dashdirectly in DDR React.If using
dapp-sdkis a must-have for you, there are two options that could possibly solve the problem:dapp-sdkas a git submodule and directly refer to itssrcfrom the DDR-React project (instead of installingdapp-sdkvia npm).tsc) build fordapp-sdkBoth cases will avoid producing a wrapping bundle around the
dashHunterSides commentedon Jun 22, 2022
Just reiterating ICJR here, I also still receive the errors after updating.
markin-io commentedon Jun 24, 2022
@HunterSides thanks. Please try out one of the steps #328 (comment)
HunterSides commentedon Jun 27, 2022
@markin-io @ICJR Attempting to use dapp-sdk as a git submodule gives me
