js-stellar-sdk
js-stellar-sdk copied to clipboard
Uncaught (in promise) Error: adapter is not a function
Describe the bug I am using stellar-sdk in a chrome extension background script. While using loadAccount(), I am facing this issue.
What version are you on? "10.4.1
To Reproduce Steps to reproduce the behavior:
- Use stellar sdk in background script of a chrome extension.
- use loadAccount()
- See error
Expected behavior Expected to get a return account details
Can you confirm/deny that this issue is present in the latest version?
This issue is Fixed But When I try to create a keypair from secretkey
const sourceKeyPair = Keypair.fromSecret(sourceSecret);
Error
transfer-91b16cfc.js:6 Uncaught (in promise) TypeError: "size" argument must be of type number