0

When using conseiljs for deploying contracts the statement seems to have some error which is directly copied from the conseiljs library.

const result = await conseiljs.TezosNodeWriter.sendContractOriginationOperation(tezosNode, keystore, 0, undefined, false, true, 100000, '', 1000, 100000, contract, storage, conseiljs.TezosParameterFormat.Micheline);

Giving error :

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'replace' of undefined
at Object.normalizeMichelineWhiteSpace (/Users/heisenberg/Desktop/tezos/test-boiler-react/node_modules/conseiljs/dist/chain/tezos/TezosLanguageUtil.js:222:25)
at /Users/heisenberg/Desktop/tezos/test-boiler-react/node_modules/conseiljs/dist/chain/tezos/TezosMessageCodec.js:500:65
at Array.map (<anonymous>)
at encodeOrigination (/Users/heisenberg/Desktop/tezos/test-boiler-react/node_modules/conseiljs/dist/chain/tezos/TezosMessageCodec.js:500:18)
at Object.encodeOperation (/Users/heisenberg/Desktop/tezos/test-boiler-react/node_modules/conseiljs/dist/chain/tezos/TezosMessageCodec.js:77:24)
at /Users/heisenberg/Desktop/tezos/test-boiler-react/node_modules/conseiljs/dist/chain/tezos/TezosNodeWriter.js:75:82
at Array.forEach (<anonymous>)
at forgeOperations (/Users/heisenberg/Desktop/tezos/test-boiler-react/node_modules/conseiljs/dist/chain/tezos/TezosNodeWriter.js:75:20)
at /Users/heisenberg/Desktop/tezos/test-boiler-react/node_modules/conseiljs/dist/chain/tezos/TezosNodeWriter.js:168:42
at Generator.next (<anonymous>)

(node:79890) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:79890) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.