-
Notifications
You must be signed in to change notification settings - Fork 17
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
tests: Remove cross_staking mock #114
Conversation
0bcf1ae
to
193c40d
Compare
…emaining_tests tests: Remove cross_staking mock from vault tests
#[msg(exec)] | ||
fn test_rollback_unstake(&self, ctx: ExecCtx, tx_id: u64) -> Result<Response, ContractError> { |
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.
If we are keeping these test helpers for now, could we move them to a separate file? They make the contracts harder to read. Ideally I would love to get rid of them, but if not a separate file would be nice.
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.
I would love to get rid of them.
For now we could go with something like that: #117. Naming is bad I know.
The best workaround from sylvia
side might be to add ability to conditionally use messages
attribute.
Something like that would expose interface methods only if mt
feature is enabled.
#[contract]
#[mt(messages(interface))]
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.
Approach in #117 is definitely an improvement.
Love the idea of adding the ability to conditionally use messages
attribute to sylvia
.
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.
LGTM. Great work. Thanks for going through this.
Co-authored-by: Mauro Lacy <[email protected]>
feat: Move ibc workaround methods in ExternalStaking to interface
part of #95