netgum / archanova

Archanova monorepo
https://archanova.io/
19 stars 11 forks source link

Account status remains as created after account deployment #41

Closed FSM1 closed 5 years ago

FSM1 commented 5 years ago

account state does not change to 'Deployed' after the deployment of the account occurs.

Please see the logs below: image

the correct state is loaded the next time the SDK is initialized.

stanislaw-glogowski commented 5 years ago

For nodejs env you need to set api WebSocket constructor

const { createSdk, getSdkEnvironment } = require('@archanova/sdk');
const Ws = require('ws');

let sdkEnv = getSdkEnvironment('main');

sdkEnv = sdkEnv.setConfig('apiWebSocketConstructor', Ws); // <---

const sdk = createSdk(sdkEnv);
FSM1 commented 5 years ago

thanks @stanislaw-glogowski that worked a charm.