Skip to content

Conversation

@dhruvkelawala
Copy link
Collaborator

@dhruvkelawala dhruvkelawala commented Sep 2, 2022

Motivation and Resolution

With starknet version 0.10.0, new transaction version (version 1) has been introduced. The new transaction version has the following major changes:

  1. entry_point_selector has been removed from INVOKE_FUNCTION transaction type and __execute__ is now the default entrypoint for all transactions going through the account contracts.
  2. nonce field is added in INVOKE_FUNCTION which is now mandatory. nonce is also now handled by Starknet OS itself instead of account contract level management.

RPC version (if applicable)

...

Usage related changes

  • For users, there are no apparent changes. As nonce management is done by OS, the users facing transaction failure due to nonce mismatch should be solved.
  • For dApp developers, the only major change is that all transaction invoking calls should go through account. Support for provider.invoke() is removed. DApp Developers should use account.execute().

Development related changes

  • No changes

Checklist:

  • Performed a self-review of the code
  • Rebased to the last commit of the target branch (or merged it into my branch)
  • Linked the issues which this PR resolves
  • Documented the changes
  • Updated the docs (www)
  • Updated the tests
  • All tests are passing

@netlify
Copy link

netlify bot commented Sep 2, 2022

Deploy Preview for starknetjs canceled.

Name Link
🔨 Latest commit 83e5dd7
🔍 Latest deploy log https://app.netlify.com/sites/starknetjs/deploys/632308d80fd1260008109c34

@dhruvkelawala
Copy link
Collaborator Author

closes #316. Also improves on #314

@janek26
Copy link
Member

janek26 commented Sep 7, 2022

@ivpavici ivpavici merged commit 10e0edc into starknet-io:develop Sep 16, 2022
@github-actions
Copy link
Contributor

🎉 This PR is included in version 4.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Account Interface to be compatible with starknet 0.10.0 Support for StarkNet 0.10.0

4 participants