I’m trying to add streams programmatically but the script is failing with error
Error Im getting
return “0x”.concat(chain.toString(16));
^
TypeError: Cannot read properties of undefined (reading ‘toString’)
at Function.EvmChainParser.parse (C:\Users\anush\Documents\dexwin.bet\streams-api\node_modules@moralisweb3\common-evm-utils\lib\dataTypes\EvmChain\EvmChainParser.js:40:34)
at new EvmChain (C:\Users\anush\Documents\dexwin.bet\streams-api\node_modules@moralisweb3\common-evm-utils\lib\dataTypes\EvmChain\EvmChain.js:17:55)
at Function.EvmChain.create (C:\Users\anush\Documents\dexwin.bet\streams-api\node_modules@moralisweb3\common-evm-utils\lib\dataTypes\EvmChain\EvmChain.js:202:16)
at C:\Users\anush\Documents\dexwin.bet\streams-api\node_modules@moralisweb3\common-streams-utils\lib\operations\evmStreams\createStreamEvmOperation.js:51:92
at Array.map ()
at Object.getRequestBody (C:\Users\anush\Documents\dexwin.bet\streams-api\node_modules@moralisweb3\common-streams-utils\lib\operations\evmStreams\createStreamEvmOperation.js:51:34)
at OperationRequestBuilder.prepareBody (C:\Users\anush\Documents\dexwin.bet\streams-api\node_modules@moralisweb3\api-utils\lib\resolvers2\OperationRequestBuilder.js:47:35)
at OperationResolver. (C:\Users\anush\Documents\dexwin.bet\streams-api\node_modules@moralisweb3\api-utils\lib\resolvers2\OperationResolver.js:59:52)
at step (C:\Users\anush\Documents\dexwin.bet\streams-api\node_modules@moralisweb3\api-utils\lib\resolvers2\OperationResolver.js:33:23)
at Object.next (C:\Users\anush\Documents\dexwin.bet\streams-api\node_modules@moralisweb3\api-utils\lib\resolvers2\OperationResolver.js:14:53)