Skip to content
New issue

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

Snapshot's Lock.js not working with latest SDK version #235

Closed
samuveth opened this issue Oct 15, 2021 · 6 comments
Closed

Snapshot's Lock.js not working with latest SDK version #235

samuveth opened this issue Oct 15, 2021 · 6 comments

Comments

@samuveth
Copy link

samuveth commented Oct 15, 2021

@TomAFrench I've been trying to get your implementation below working with safe-apps-sdk 4.3.0 and safe-apps-provider 0.8.0. I've changed the sdk.getSafeInfo(); to sdk.safe.getInfo(); by following the README, but I'm getting TypeError: SafeAppsSDK is not a constructor which I'm not able to solve.

snapshot-labs/lock@be6d030

@mmv08
Copy link
Member

mmv08 commented Oct 15, 2021

did you try to debug it? if you do console.log(SafeAppsSDK), what does it print?

@samuveth
Copy link
Author

samuveth commented Oct 16, 2021

@mikheevm yes I tried debugging it, but without any success. This is the console of SafeAppsSDK
image

@mmv08
Copy link
Member

mmv08 commented Oct 16, 2021

@mikheevm yes I tried debugging it, but without any success. This is the console of SafeAppsSDK

image

You need to add one more .default to your import 🙂

@mmv08 mmv08 closed this as completed Oct 16, 2021
@samuveth
Copy link
Author

samuveth commented Oct 16, 2021

@mikheevm yes I tried that before, but now I get the following error:
image

@mmv08
Copy link
Member

mmv08 commented Oct 16, 2021

@mikheevm yes I tried that before, but now I get the following error:

image

Please debug it the same way, it's not SDK's problem

@taylorjdawson
Copy link

taylorjdawson commented Oct 28, 2021

@mikheevm This is related to this issue:
ethereumjs/ethereumjs-monorepo#978

I think you should have an esm build for the SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants