We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { SwapPromise } from '@acala-network/sdk-swap'; const swapPromise = new SwapPromise(api);
Uncaught (in promise) TypeError: (0 , _util.memoize) is not a function at new SwapPromise (swap-promise.js:21:1)
The text was updated successfully, but these errors were encountered:
may try the latest version 4.1.2-5. It seems some error in your development environment.
The code below works good for me, my node version is v16.13.1
import { SwapPromise } from '@acala-network/sdk-swap'; import { ApiPromise, WsProvider } from "@polkadot/api"; import { options } from "@acala-network/api"; export const getPolkadotApiProvider = async () => { const provider = new WsProvider('wss://karura-rpc-0.aca-api.network'); const api = new ApiPromise( options({ provider }) ); await api.isReady; return api; }; (async () => { const api = await getPolkadotApiProvider(); const swapPromise = new SwapPromise(api); console.log(swapPromise) })()
Sorry, something went wrong.
I did try with version 4.1.2-5 and my node version is 16 as well but still the same issue
No branches or pull requests
import { SwapPromise } from '@acala-network/sdk-swap';
const swapPromise = new SwapPromise(api);
Uncaught (in promise) TypeError: (0 , _util.memoize) is not a function
at new SwapPromise (swap-promise.js:21:1)
The text was updated successfully, but these errors were encountered: