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
The SDK calls fetch to load the wasm file, but nodejs' native fetch method cannot read the file so the global fetch method has been modified to cater for this. This affects other sdks that run in the same environment as this sdk which creates issues for certain companies to integrate Aleo using this sdk.
Potential Solution
To get around this issue the global fetch polyfill can possibly be renamed to something else, for example new_fetch(). All the current uses of fetch() within the sdk would be renamed to new_fetch().
Like this the global fetch polyfill would not impact other sdks used within the same environment.
The text was updated successfully, but these errors were encountered:
Global fetch method impacts other SDKs
The Problem
The SDK calls
fetch
to load the wasm file, but nodejs' nativefetch
method cannot read the file so the global fetch method has been modified to cater for this. This affects other sdks that run in the same environment as this sdk which creates issues for certain companies to integrate Aleo using this sdk.Potential Solution
To get around this issue the global fetch polyfill can possibly be renamed to something else, for example
new_fetch()
. All the current uses offetch()
within the sdk would be renamed tonew_fetch()
.Like this the global fetch polyfill would not impact other sdks used within the same environment.
The text was updated successfully, but these errors were encountered: