Commit 3b2de35 1 parent a1dfbb9 commit 3b2de35 Copy full SHA for 3b2de35
File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " suilend"
3
3
version = " 0.0.1"
4
- published-at = " 0x465174d80d10d33917d16721d20e6a4e08c50e9d3ff9115ee8c36cf9fb7bcd6e "
4
+ published-at = " 0xbfc6127da72073545b271e2eee0e554ef34b10ba602cc7a287f28a465bd3483d "
5
5
edition = " 2024.beta"
6
6
7
7
[dependencies .Sui ]
Original file line number Diff line number Diff line change @@ -940,8 +940,11 @@ module suilend::lending_market {
940
940
}
941
941
942
942
// === Admin Functions ===
943
- entry fun migrate <P >(_: &LendingMarketOwnerCap <P >, lending_market: &mut LendingMarket <P >) {
944
- assert !(lending_market.version == CURRENT_VERSION - 1 , EIncorrectVersion );
943
+ entry fun migrate <P >(
944
+ _: &LendingMarketOwnerCap <P >,
945
+ lending_market: &mut LendingMarket <P >,
946
+ ) {
947
+ assert !(lending_market.version <= CURRENT_VERSION - 1 , EIncorrectVersion );
945
948
lending_market.version = CURRENT_VERSION ;
946
949
}
947
950
You can’t perform that action at this time.
0 commit comments