Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError : Cannot use "in" operator to search for 'map' in undefined #35

Open
legeci opened this issue Dec 3, 2023 · 3 comments
Open

Comments

@legeci
Copy link

legeci commented Dec 3, 2023

I'm building the tip3 token contract on Venom testnet according to the documentation found here but every time I try to deploy I get this error message:

D:\Coded_Tale\Brand_Projects\VenomBlockchain\bread-token\node_modules\locklift\internal\factory\index.js:68
if ("map" in map) {
^
TypeError: Cannot use 'in' operator to search for 'map' in undefined
at Factory.initializeContract (D:\Coded_Tale\Brand_Projects\VenomBlockchain\bread-token\node_modules\locklift\internal\factory\index.js:68:23)
at D:\Coded_Tale\Brand_Projects\VenomBlockchain\bread-token\node_modules\locklift\internal\factory\index.js:154:35
at Array.map ()
at Factory.getContractsArtifacts (D:\Coded_Tale\Brand_Projects\VenomBlockchain\bread-token\node_modules\locklift\internal\factory\index.js:153:53)
at Function.setup (D:\Coded_Tale\Brand_Projects\VenomBlockchain\bread-token\node_modules\locklift\internal\factory\index.js:126:23)
at Function.setup (D:\Coded_Tale\Brand_Projects\VenomBlockchain\bread-token\node_modules\locklift\index.js:209:49)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at initLockliftStep (D:\Coded_Tale\Brand_Projects\VenomBlockchain\bread-token\node_modules\locklift\internal\cli\steps\initLocklift.js:8:23)
at Command. (D:\Coded_Tale\Brand_Projects\VenomBlockchain\bread-token\node_modules\locklift\internal\cli\commands\run.js:38:5)

@cmstallworth
Copy link

I figured it out finally the issue is when you build your smart contract locklift doesn't build a "contractname.map.json" file as it does when you build the sample project through the init command. Since this file isn't produced during the build phase it throws the above error, I commented out the code and everything works perfectly. I don't know if this code is needed but if not you may consider removing it in future updates.
Screenshot from 2023-12-09 00-38-15

@ibockowsky
Copy link

Issue still exists

@ibockowsky
Copy link

Fix for it:
venom-blockchain#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants