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: Fix method BigmapTypeDetection #17

Merged
merged 12 commits into from
Sep 9, 2024

Conversation

huancheng-trili
Copy link

@huancheng-trili huancheng-trili commented Sep 6, 2024

What

Fixes method BigmapTypeDetection.

Why

One new test case that was added in #16 failed this method.

Test

Uncommented the test case that failed in #16 and all tests passed.

@huancheng-trili huancheng-trili force-pushed the fix-bigmap-type-detection branch from ccc2941 to d68eeff Compare September 6, 2024 08:45
@huancheng-trili huancheng-trili force-pushed the fix-bigmap-type-detection branch from 5433e20 to d907575 Compare September 6, 2024 09:07
@@ -520,10 +518,22 @@ func detectBigmapTypes(p Prim) map[string]Type {
if n == "" {
n = "bigmap_" + strconv.Itoa(i)
}
if _, ok := named[n]; ok {
n += "_" + strconv.Itoa(i)
uniqueName := func(n string) string {
Copy link
Author

Choose a reason for hiding this comment

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

Updated this just to match the naming convention defined in BigmapTypeDetection. Otherwise, tests would fail due to a mismatch in naming.

@huancheng-trili huancheng-trili marked this pull request as ready for review September 6, 2024 09:11
Base automatically changed from fix-bigmap-detection to master September 9, 2024 13:10
@huancheng-trili huancheng-trili merged commit cd5b76a into master Sep 9, 2024
4 checks passed
@huancheng-trili huancheng-trili deleted the fix-bigmap-type-detection branch September 9, 2024 13:13
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.

1 participant