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 type_arg parsing #189

Merged
merged 2 commits into from
Jan 30, 2024
Merged

fix type_arg parsing #189

merged 2 commits into from
Jan 30, 2024

Conversation

Yolley
Copy link
Contributor

@Yolley Yolley commented Jan 30, 2024

  • always return str in type_arg at it's the correct type (that can then be correctly parsed by TypeTag)

This one is opinionated but I am not sure how we would benefit from having an array in type_arg (may be rename it to type_args then?). Anyway this type currently

0xa283fd6b45f1103176e7ae27e870c89df7c8783b15345e2b13faa81ec25c4fa6::protocol::Contract<0xb24b6789e088b876afabca733bed2299fbc9e2d6369be4d1acfa17d8145454d9::swap::LSP<0x2::sui::SUI, 0x239e9725bdab1fcb2e4798a057da809e52f13134a09bc9913659d4a80ddfdaad::shui::SHUI>>

Is parsed just as 0xb24b6789e088b876afabca733bed2299fbc9e2d6369be4d1acfa17d8145454d9::swap::LS by pysui which for sure is incorrect.

@FrankC01 FrankC01 merged commit 74c35f9 into FrankC01:main Jan 30, 2024
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.

2 participants