-
Notifications
You must be signed in to change notification settings - Fork 20
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
run yarn dock-did-example, error "TypeError: this.module.newOnchain is not a function" #346
Comments
Can you share your docker image id and SDK version because
The output logs suggest you're running |
SDK version: master And I run the following command : docker run -p 9944:9944 -p 30333:30333 docknetwork/dock-substrate:mainnet --chain ./cspec/knox_raw.json --ws-external --enable-offchain-indexing=true 2023-04-10 08:07:06 Dock Node |
Can you share the most recent block on your node? The |
step1. docker run -p 9944:9944 -p 30333:30333 docknetwork/dock-substrate:mainnet --chain ./cspec/knox_raw.json --ws-external --enable-offchain-indexing=true
step2. run yarn dock-did-example
Creating DID resolvers...
Building DIDs list...
Error occurred somewhere, it was caught! TypeError: this.module.newOnchain is not a function
at DIDModule.createNewOnchainTx (/Users/xxxxx/Downloads/sdk-master/src/modules/did/did.js:143:24)
at DIDModule.new (/Users/xxxxx/Downloads/sdk-master/src/modules/did/did.js:167:12)
at registerNewDIDUsingPair (/Users/xxxxx/Downloads/sdk-master/tests/integration/helpers.js:25:25)
at createDockDID (/Users/xxxxx/Downloads/sdk-master/example/resolver.js:55:32)
at main (/Users/xxxxx/Downloads/sdk-master/example/resolver.js:78:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
error Command failed with exit code 1.
The text was updated successfully, but these errors were encountered: