while running the smart contract uisng polkadot api i get the following error
file:///Users/.../Documents/Study%20related/Learning-JS/ipfs_ink/node_modules/@polkadot/api-contract/base/Contract.js:81
gasLimit = BN_ZERO,
^
TypeError: Cannot read properties of undefined (reading 'gasLimit')
at ContractPromise.#read (file:///Users/.../Documents/Study%20related/Learning-JS/ipfs_ink/node_modules/@polkadot/api-contract/base/Contract.js:81:5)
at file:///Users/.../Documents/Study%20related/Learning-JS/ipfs_ink/node_modules/@polkadot/api-contract/base/Contract.js:40:71
at Object.addMaterialPassport (file:///Users/.../Documents/Study%20related/Learning-JS/ipfs_ink/node_modules/@polkadot/api-contract/base/Contract.js:14:57)
at main (file:///Users/..../Documents/Study%20related/Learning-JS/ipfs_ink/index_1.js:409:78)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
i tried to give gasLimit in the program as 10000n * 1000000n and later i tried with -1;
but error remains the same. How to solve it
Using the developer node of substrate. Made the contract in Ink and trying to access it using metadata.json
I try to access it using a javascript program with @polkadot/api and @polkadot/api-contract packages.