-
Notifications
You must be signed in to change notification settings - Fork 206
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
code.createBlueprint is not a function #174
Comments
This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days. |
Docs need updating (I'm guessing here), the |
Closing, the deprecations tracked in #172 |
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. |
Hello, I'm trying to work through the examples at https://polkadot.js.org/docs/api-contract/start/code/ and am getting the error "code.createBlueprint is not a function"
I'm using "@polkadot/api-contract": "^4.13.1"
I'm using ink! and attempting to work with the incrementer example contract.
I am using an unmodified substrate canvas chain.
I can execute const code = new CodePromise(api, abi, wasm); without any error.
I'm using var abi = HERE DOC about 300 lines of JSON text from incrementer's metadata.json file and this appears to parse correctly.
I'm using var wasm = "0x... about 36K of hex" from incrementer.contract and this also appears to be working correctly.
If I search the source code for createBlueprint I see about 10 references to createBluePrintTx, but if I try to use this method instead, I get the same error.
Any clues greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: