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: Add ContractAddress type to consolidate contract id parsing with aliases #1692

Merged
merged 14 commits into from
Nov 15, 2024

Conversation

willemneal
Copy link
Member

@willemneal willemneal commented Oct 30, 2024

New type is similar to Address (which later should be combined since contract addresses can be used with contract invoke contract method args.

@willemneal willemneal requested a review from Ifropc October 30, 2024 14:35
@willemneal
Copy link
Member Author

It seems that this is not needed since it is resolved in the function that fetches the wasm. However, given the work that @fnando is doing with the config it might be worth adding a similar ContractAddress type.

@Ifropc
Copy link
Contributor

Ifropc commented Oct 30, 2024

Change seems to be super simple but looks like there are some test failures cause of error types

Copy link
Contributor

@Ifropc Ifropc left a comment

Choose a reason for hiding this comment

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

Love the addition of the new enum, one small question and LGTM (tests still seem to fail)

cmd/soroban-cli/src/config/alias.rs Show resolved Hide resolved
@leighmcculloch leighmcculloch marked this pull request as draft November 6, 2024 13:23
@leighmcculloch
Copy link
Member

Converted to draft because builds seem to be broken.

@willemneal willemneal changed the title fix: Use contract aliases in contract info commands fix: Add ContractAddress type to consolidate contract id parsing with aliases Nov 7, 2024
@willemneal willemneal marked this pull request as ready for review November 7, 2024 12:54
@willemneal willemneal requested a review from Ifropc November 12, 2024 20:59
@willemneal
Copy link
Member Author

@Ifropc

Copy link
Contributor

@Ifropc Ifropc left a comment

Choose a reason for hiding this comment

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

LGTM!

@willemneal willemneal enabled auto-merge (squash) November 14, 2024 23:59
@willemneal willemneal merged commit b37da02 into main Nov 15, 2024
28 of 30 checks passed
@willemneal willemneal deleted the fix/contract_info branch November 15, 2024 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants