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

Fix detection of Abi version in contract with only constructor #1243

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

taco-paco
Copy link
Contributor

Motivation and Resolution

Fixes detection of Abi version and closes #1242

RPC version (if applicable)

...

Usage related changes

No exception of new CallData in contracts without any function

Development related 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 in code (API docs will be generated automatically)
  • Updated the tests
  • All tests are passing

(it) => it.type === 'function' && (it.inputs.length || it.outputs.length)
const testSubject = abi.find(
(it) =>
(it.type === 'function' || it.type === 'constructor') &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to do it now, but later we can extract these comparisons somewhere to not have magic strings, since we have these same comparisons in a couple of more files cc @penovicp

@ivpavici ivpavici merged commit 6bd26a1 into starknet-io:develop Oct 7, 2024
3 checks passed
Copy link

🎉 This issue has been resolved in version 6.15.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.

new CallData fails on contract with constructor only
3 participants