-
Notifications
You must be signed in to change notification settings - Fork 93
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
x/simulator: plan using not created key returns an error #883
Conversation
Hey @najeal , I think that it's a very reasonable fix, thank you very much! |
we also wrap simulator cleanup in a function we can reuse in test
Thank for your answer ! I would also prefer to avoid initialize a VM but #796 is not yet merged |
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.
Small nit, very nice work thanks a lot!
actual, err := borsh.Serialize(tt.actual) | ||
require.NoError(err) |
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.
It's much nicer being more explicit about the encoding, thanks!
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.
go test
was not compiling before using borsh.Serialize
I think simulator go tests are not run by the CI.
Not sure to understander your comment. Are you just saying it is better right now, or are you asking to be more explicit? 😀
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.
It was a CI issue, some static checks were not done and it led me to think that go was inferring the type, it was an actual bug that was apparently ignored! I'm not asking you to change anything
Co-authored-by: Franfran <51274081+iFrostizz@users.noreply.github.com> Signed-off-by: nathan haim <nathan.haim@free.fr>
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.
This is looking good to me, looking for an additional approval
@najeal, just need to update the branch and fix the lint-issue |
@richardpringle lint is fixed and branch is up-to-date with |
Closes #861
@iFrostizz using a key that has not been created will fail except for
key
endpoint (endpoint for key creation)