-
Notifications
You must be signed in to change notification settings - Fork 664
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
add api call getSubnet #1633
add api call getSubnet #1633
Conversation
Thanks for opening this! I'm wondering if it would be sufficient for the added API to only be Although maybe you were trying to avoid any pain around users trying to tell the difference between a permissioned subnet and a networking error. |
The idea was to have a generic call to get Yes the user can already use What do you think @StephenButtolph It's up to you. |
vms/platformvm/service.go
Outdated
errMissingPrivateKey = errors.New("argument 'privateKey' not given") | ||
errStartAfterEndTime = errors.New("start time must be before end time") | ||
errStartTimeInThePast = errors.New("start time in the past") | ||
errUnexpectedTransactionType = fmt.Errorf("unexpected transaction type") |
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.
nit: use errors.New
here
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.
done
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.
just some nits
Any update? |
This PR has become stale because it has been open for 30 days with no activity. Adding the |
Closing this PR. #2704 is merged and resolves the issue |
Why this should be merged
It is related to issue #1255
How this works
It gets subnet tx from an ID.
How this was tested
Tested in service_test.go through mock.