-
Notifications
You must be signed in to change notification settings - Fork 42
SC: Generate call and call_results sections in ABI files for sync calls and bump ABI version to 1.3
#353
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
Conversation
| /* TODO add some way of defaulting these to the current highest version */ | ||
| int abi_version_major = 1; | ||
| int abi_version_minor = 2; | ||
| int abi_version_minor = 3; |
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.
I think the abi version should be updated to 1.3 only if sync calls are used #355, but probably this should be done in a separate PR.
For now it might be better to leave the version at 1.2.
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.
As this is on sync_call branch only, for now I just keep it as is. When it is merged into main, it will be updated based on how #355 handles versions.
|
LGTM, seems problem with test though |
| { | ||
| "tests" : [ | ||
| { | ||
| "compile_flags": ["--abi-version=1.2"], |
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.
I don't think these are needed anymore, see #360
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.
I will change to use the scheme introduced by #360 when merge the main to sync_call branch. For now, I'd like to get this PR into sync_call branch first to minimize changes in the PR.
|
Todo in dev-preview-2: AntelopeIO/spring#1688 |
Change Description
callandcall_resultssections in ABI files for sync calls1.3callandcall_resultssectionsPlease note, this PR removes an earlier feature that allowed a method to be tagged both as an action and a call. The removal prevents two problems:
header. If a method is tagged both as an action and a call, it shares the same ABI definition, which includes theheaderfield. That breaks the existing action ABI, and also leads to two different ABI definitions for actions tagged as action only, or tagged as both action and call, Furthermore, whencleosis used to push an action/transaction, theheadermust be specified, which is not applicable to actions.Resolves #344
For the following contract
The ABI file is
API Changes
Documentation Additions