Skip to content

Commit c835858

Browse files
committed
chore: resolve review comments
1 parent 267d3e3 commit c835858

File tree

5 files changed

+20
-21
lines changed

5 files changed

+20
-21
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pop-api/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pop-api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name = "pop-api"
66
version = "0.0.0"
77

88
[dependencies]
9-
bitflags = { version = "1.3.2", optional = true }
9+
bitflags = { version = "2.8.0", optional = true }
1010
enumflags2 = { version = "0.7.9", optional = true }
1111

1212
# Pop.

pop-api/integration-tests/src/nonfungibles/utils.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ pub(super) mod nfts {
312312
collection,
313313
item,
314314
operator.clone().into(),
315-
Some(BlockNumber::MAX)
315+
Some(u32::MAX)
316316
));
317317
(collection, item)
318318
}
@@ -352,9 +352,9 @@ pub(super) mod nfts {
352352
pub(crate) fn default_mint_settings() -> MintSettings {
353353
MintSettings {
354354
mint_type: MintType::Issuer,
355-
price: Some(Balance::MAX),
356-
start_block: Some(BlockNumber::MIN),
357-
end_block: Some(BlockNumber::MAX),
355+
price: Some(u128::MAX),
356+
start_block: Some(u32::MIN),
357+
end_block: Some(u32::MAX),
358358
default_item_settings: ItemSettings::all_enabled(),
359359
}
360360
}

pop-api/src/v0/nonfungibles/types.rs

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ mod tests {
198198
#[test]
199199
fn ensure_mint_witness() {
200200
assert_eq!(
201-
MintWitness { owned_item: Some(ItemId::MAX), mint_price: Some(Balance::MAX) }.encode(),
201+
MintWitness { owned_item: Some(u32::MAX), mint_price: Some(u128::MAX) }.encode(),
202202
pallet_nfts::MintWitness::<ItemId, Balance> {
203-
owned_item: Some(ItemId::MAX),
204-
mint_price: Some(Balance::MAX)
203+
owned_item: Some(u32::MAX),
204+
mint_price: Some(u128::MAX)
205205
}
206206
.encode()
207207
);
@@ -258,12 +258,11 @@ mod tests {
258258
#[test]
259259
fn ensure_mint_type() {
260260
assert_eq!(
261-
vec![MintType::Issuer, MintType::Public, MintType::HolderOf(CollectionId::MAX)]
262-
.encode(),
261+
vec![MintType::Issuer, MintType::Public, MintType::HolderOf(u32::MAX)].encode(),
263262
vec![
264263
pallet_nfts::MintType::Issuer,
265264
pallet_nfts::MintType::Public,
266-
pallet_nfts::MintType::HolderOf(CollectionId::MAX)
265+
pallet_nfts::MintType::HolderOf(u32::MAX)
267266
]
268267
.encode()
269268
);
@@ -330,9 +329,9 @@ mod tests {
330329
fn default_mint_settings() -> MintSettings {
331330
MintSettings {
332331
mint_type: MintType::Public,
333-
price: Some(Balance::MAX),
334-
start_block: Some(BlockNumber::MIN),
335-
end_block: Some(BlockNumber::MAX),
332+
price: Some(u128::MAX),
333+
start_block: Some(u32::MIN),
334+
end_block: Some(u32::MAX),
336335
default_item_settings: ItemSettings::all_enabled(),
337336
}
338337
}
@@ -341,9 +340,9 @@ mod tests {
341340
) -> pallet_nfts::MintSettings<Balance, BlockNumber, CollectionId> {
342341
pallet_nfts::MintSettings::<Balance, BlockNumber, CollectionId> {
343342
mint_type: pallet_nfts::MintType::Public,
344-
price: Some(Balance::MAX),
345-
start_block: Some(BlockNumber::MIN),
346-
end_block: Some(BlockNumber::MAX),
343+
price: Some(u128::MAX),
344+
start_block: Some(u32::MIN),
345+
end_block: Some(u32::MAX),
347346
default_item_settings: pallet_nfts::ItemSettings::all_enabled(),
348347
}
349348
}

0 commit comments

Comments
 (0)