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

code.createBlueprint is not a function #174

Closed
bostontrader opened this issue Jun 7, 2021 · 4 comments
Closed

code.createBlueprint is not a function #174

bostontrader opened this issue Jun 7, 2021 · 4 comments

Comments

@bostontrader
Copy link

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!

@polkadot-js-bot
Copy link

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.

@jacogr
Copy link
Member

jacogr commented Jun 29, 2021

Docs need updating (I'm guessing here), the createBlueprint and other items have been deprecated for a very long time.

@jacogr
Copy link
Member

jacogr commented Jun 29, 2021

Closing, the deprecations tracked in #172

@jacogr jacogr closed this as completed Jun 29, 2021
@polkadot-js-bot
Copy link

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.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jul 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants