-
Notifications
You must be signed in to change notification settings - Fork 349
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
Can not deploy a contract #3268
Comments
This works:
|
The current version of the contracts interface requires the |
@jacogr sorry, but what do you mean by "requires the utility module"? Is it something we need to somehow load? I can't find any documentation on this |
ah, so this is something that needs to go on the substrate implementation itself. So I assume canvas-node (the test node I'm using) is the one that needs to fix this? |
I don't know about this, but |
To clarify, I bumped into the same issue described here yesterday Also tried to debug the wrapper in the browser using my project's code, and it seems Currently using: |
https://github.com/polkadot-js/api/blob/master/packages/api-contract/src/base/Code.ts#L71 (Support for v2 will be dropped in the upcoming weeks completely, non-upgraded chains are just creating noise - generally I leave around a 3 month grace-period from release to allow upgrades instead of just trying to support everything indefinitely. Canvas-node itself was upgraded on 23 Feb) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
When I am trying to deploy a contract doing the process described in the documentation, some of the functions are deprecated.
That being said here is the way I am trying to deploy a contract
This results in an error saying "Cannot read property 'batch' of undefined". The "batch" function behind the scene is called
in Code.js row 90 like so
The text was updated successfully, but these errors were encountered: