-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hi,
So basically, I have run the ssi-hub server and switchboard-dapp on the localhost on their respective ports. Now, I am trying to connect the switchboard dapp with the cache server. I am editing the environment variables in switchboard-dapp code, as shown below.
import { constants } from './constants';
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
theme: 'default',
application: true,
rpcUrl: 'https://volta-rpc.energyweb.org/',
chainId: 73799,
cacheServerUrl: 'http://localhost:3000/v1',
natsServerUrl: 'https://identityevents-dev.energyweb.org/',
ekcUrl: 'https://azure-proxy-server.energyweb.org/api/v1',
kmsServerUrl: undefined,
showAzureLoginOption: true,
natsEnvironmentName: 'ewf-dev',
rootNamespace: 'iam.ewc',
fullNetworkName: 'EnergyWeb Volta Chain',
networkName: 'Volta',
currencyName: 'Volta Token',
currencySymbol: 'VT',
blockExplorerUrl: 'https://volta-explorer.energyweb.org',
SENTRY_ENVIRONMENT: 'localhost',
...constants,
};
It works, and I am able to connect the switchboard-dapp to the cache server hosted locally. I can even sign in using metamask. However, the problem comes when I try to see enrollment or try to register asset. It gives error as shown below.
Moreover, I can see the transactions on volta-explorer. It actually sends the transaction to the smart contract. But the asset is never registered. Also, I feel there is a problem with the smart contract addresses. In the env file, the asset manager smart contract address is 0xE258fA7D1cc8964D0dEB7204Df947bCa42b2c940, but in volta-explorer, the transaction is being sent to the address 0x84d0c7284A869213CB047595d34d6044d9a7E14A (I digged out and got to know its identity manager contract address defined in iam-client-lib code).
Am I doing something wrong, please have a look on this issue. Thank you