-
Notifications
You must be signed in to change notification settings - Fork 49
feat: include support for ink v6 contracts #571
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
base: master
Are you sure you want to change the base?
Conversation
❌ Deploy Preview for ui-use-ink failed. Why did it fail? →
|
"@polkadot/api": "15.8.1", | ||
"@polkadot/api-contract": "15.8.1", | ||
"@polkadot/api": "file:../polkadot-js-api/packages/api/build", | ||
"@polkadot/api-contract": "file:../polkadot-js-api/packages/api-contract/build", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To update once this polkadot-js/api#6158 gets merged and released
@@ -30,7 +30,7 @@ export const ApiContextProvider = ({ children }: React.PropsWithChildren<Partial | |||
const rpcUrl = searchParams.get('rpc'); | |||
const [preferredEndpoint, setPreferredEndpoint] = useLocalStorage<string>( | |||
LOCAL_STORAGE_KEY.PREFERRED_ENDPOINT, | |||
ROCOCO_CONTRACTS.rpc, | |||
POP_NETWORK_TESTNET.rpc, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use another, the only reason to pick Pop Network is because it support both ink! v6 and ink! v5
This PR adds support for ink! v6 contracts in the Contracts UI, while preserving full compatibility with ink! v5. It continues the work started in #569
Users can now select between v5 and v6 via a version switcher dropdown, similar to the approach used in the ink!-docs https://use.ink/docs/v6/
How to test
You must test this with local builds of the API packages:
Clone and build the following PR from our the Polkadot JS fork: https://github.com/use-ink/polkadot-js-api/tree/chore/add-revive
Closes #566