chore(toolchain): upgrade to 1.72 nightly#2149
Conversation
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
d3778d0 to
1646505
Compare
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
mariocynicys
left a comment
There was a problem hiding this comment.
Bless you 👼, LGTM!
I only skimmed over clippy and fmt changes. I guess we don't really have a choice with these but to follow them until another toolchain upgrade.
Signed-off-by: onur-ozkan <work@onurozkan.dev>
b9f9550 to
da7cb8a
Compare
| [profile.release.package.mocktopus] | ||
| opt-level = 1 # TODO: MIR fails on optimizing this dependency, remove that.. No newline at end of file |
There was a problem hiding this comment.
mocktopus should be a dev only dependency, but since TestCoin is used outside coins crate I will use for-tests feature instead. Will push a commit that fixes that.
There was a problem hiding this comment.
Fixed here db8aedc
In the future, we should move TestCoin to mm2_test_helpers or another test only crate that we import as a dev only dependency.
There was a problem hiding this comment.
I will revert the last commit for now, I thought everything was fine because clippy for all targets and features worked locally, same for tests but for CI jobs it's different. It will need a bigger refactor.
There was a problem hiding this comment.
IMO we should just get rid of that outdated/dead dependency.
There was a problem hiding this comment.
BTW I made mocktopus optional in my PR #2112 too.
But I had to add it also as dev-dependencies as some tests in mm2_main rely on mocks in coins: f3625e5 (otherwise mocks did not do anything)
Thanks @dimxy for this note, I guess we can merge this PR with [profile.release.package.mocktopus] and you can remove it in your PR if you can to not duplicate the effort.
db8aedc to
da7cb8a
Compare
shamardy
left a comment
There was a problem hiding this comment.
Thank you for the update! Only one comment from my side.
Signed-off-by: onur-ozkan <work@onurozkan.dev>
7864eaf to
ece8b26
Compare
Signed-off-by: onur-ozkan <work@onurozkan.dev>
ece8b26 to
b2d9e52
Compare
| debug!("total_available: {}", available); | ||
| #[allow(clippy::redundant_clone)] // This is a false-possitive bug from clippy | ||
| let min_tx_amount = qtum_min_tx_amount.clone(); | ||
| let expected_max_taker_vol = | ||
| max_taker_vol_from_available(MmNumber::from(available), "QTUM", "MYCOIN", &min_tx_amount) |
There was a problem hiding this comment.
| debug!("total_available: {}", available); | |
| #[allow(clippy::redundant_clone)] // This is a false-possitive bug from clippy | |
| let min_tx_amount = qtum_min_tx_amount.clone(); | |
| let expected_max_taker_vol = | |
| max_taker_vol_from_available(MmNumber::from(available), "QTUM", "MYCOIN", &min_tx_amount) | |
| debug!("total_available: {}", available); | |
| let expected_max_taker_vol = | |
| max_taker_vol_from_available(MmNumber::from(available), "QTUM", "MYCOIN", &qtum_min_tx_amount) | |
| .expect("max_taker_vol_from_available"); |
There was a problem hiding this comment.
I kind of liked the way we explicitly defined the minimum transaction amount. The change in suggestion is not really clear at first glance (to figure out the min tx amount, we need to look at max_taker_vol_from_available and check what the last argument stands for). Considering that this is just a test function, I am not sure if this change is worth applying. These are my thoughts, if you still think we should apply this change, please feel completely free to do that!
|
Thanks for the toolchain upgrade. Now Note: Could you please write |
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Done 058afa0 |
* dev: fix(restrictions): remove wallet-only restriction from max_maker_vol (#2153) feat(tendermint): support unsigned txs for ledger's keplr extension (#2148) chore(toolchain): upgrade to 1.72 nightly (#2149) feat(solana-swap): solana swap protocol v1 POC (#2091) fix(docs): update cargo test command (#2144)
This should greatly help for people working on solana-sdk upgrade and the stable toolchain migration work.
Should be easy to review commit-by-commit.