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

Testcase for static array with zero array length #250

Merged
merged 3 commits into from
Nov 29, 2022
Merged

Conversation

ahangsu
Copy link
Contributor

@ahangsu ahangsu commented Nov 28, 2022

Copy link
Contributor

@michaeldiamant michaeldiamant left a comment

Choose a reason for hiding this comment

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

@ahangsu Thanks for adding a test case here! As intended, I confirmed the added test case fails in downstream SDKs prior to SDK source changes.

@@ -16,6 +16,7 @@ Feature: AbiJson
| add(uint32,uint16)uint32 | addMethodUint16.json | abi_responsejsons |
| referenceTest(account,application,asset)uint8[3] | referenceTestMethod.json | abi_responsejsons |
| txnTest(txn,pay,keyreg,acfg,axfer,afrz,appl)bool | txnTestMethod.json | abi_responsejsons |
| nonsense((uint64,address)[0])(uint64,address) | nonsense.json | abi_responsejsons |

Choose a reason for hiding this comment

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

probably could do better about the naming convention on these jsons.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just changed for a better name

Co-authored-by: Michael Diamant <michaeldiamant@users.noreply.github.com>
@ahangsu
Copy link
Contributor Author

ahangsu commented Nov 29, 2022

weird, cla hangs

@ahangsu ahangsu closed this Nov 29, 2022
@ahangsu ahangsu reopened this Nov 29, 2022
@ahangsu ahangsu merged commit a52bd46 into master Nov 29, 2022
@ahangsu ahangsu deleted the zero-length branch November 29, 2022 18:37
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.

ABI decoder does not allow zero-length arrays
3 participants