Skip to content

feat: update polkadot.js deps#567

Merged
peterwht merged 2 commits intomasterfrom
peter/update-polkadot-js
Mar 28, 2025
Merged

feat: update polkadot.js deps#567
peterwht merged 2 commits intomasterfrom
peter/update-polkadot-js

Conversation

@peterwht
Copy link
Collaborator

@peterwht peterwht commented Mar 26, 2025

This PR updates the polkadot.js version. This solves a bug where uploading a contract wouldn't automatically recognize the deployed contract and would require going to polkadot.js/apps and viewing events, then adding by address.

An important thing to note about this PR, is that the @polkadot/type-augment is autogenerated, but results in mismatch types for contract instantiation and invoking.

Note the type here: https://github.com/polkadot-js/api/blob/v15.8.1/packages/types/src/interfaces/contracts/types.ts#L73. This is correct and matches the older version.

However, the type-augment now uses a different type (generated types) 4.2/packages/api-augment/src/substrate/runtime.ts#L169C1-L191C7. So, this PR had to do some converting to get to our desired types.

@netlify
Copy link

netlify bot commented Mar 26, 2025

Deploy Preview for ui-use-ink ready!

Name Link
🔨 Latest commit b8e5376
🔍 Latest deploy log https://app.netlify.com/sites/ui-use-ink/deploys/67e6d804c49d6c00086f73e2
😎 Deploy Preview https://deploy-preview-567--ui-use-ink.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@peterwht peterwht changed the title build(deps): update polkadot.js deps feat: update polkadot.js deps Mar 28, 2025
@peterwht peterwht force-pushed the peter/update-polkadot-js branch 3 times, most recently from 28735e6 to b8e5376 Compare March 28, 2025 17:10
@peterwht peterwht merged commit f9bb777 into master Mar 28, 2025
19 of 25 checks passed
@peterwht peterwht deleted the peter/update-polkadot-js branch March 28, 2025 20:39
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

Successfully merging this pull request may close these issues.

1 participant