diff --git a/rgb-std b/rgb-std index b374468..ecbe5de 160000 --- a/rgb-std +++ b/rgb-std @@ -1 +1 @@ -Subproject commit b3744689e7ff2603b7093afdea09db50d032c5ca +Subproject commit ecbe5ded7f63d2e8fac68b5e58ada86ae96a9b3f diff --git a/tests/transfers.rs b/tests/transfers.rs index be258e1..76194c3 100644 --- a/tests/transfers.rs +++ b/tests/transfers.rs @@ -509,11 +509,10 @@ fn rbf_transfer() { } #[rstest] -#[ignore = "fix needed"] // https://github.com/RGB-WG/rgb-core/issues/283 -#[case(TransferType::Blinded)] #[should_panic( expected = "the invoice requirements can't be fulfilled using available assets or smart contract state." )] +#[case(TransferType::Blinded)] #[case(TransferType::Witness)] fn same_transfer_twice_no_update_witnesses(#[case] transfer_type: TransferType) { println!("transfer_type {transfer_type:?}"); @@ -539,12 +538,10 @@ fn same_transfer_twice_no_update_witnesses(#[case] transfer_type: TransferType) let (consignment, _) = wlt_1.transfer(invoice, None, Some(1000), true, None); wlt_2.accept_transfer(consignment, None); + wlt_2.sync_and_update_witnesses(None); - // with TransferType::Blinded this shows duplicated allocations wlt_2.debug_logs(contract_id, &iface_type_name, AllocationFilter::WalletAll); - // with TransferType::Blinded this fails because the wallet sees 2 allocations instead of 1 - // comment it in order to see the inflation bug wlt_2.check_allocations( contract_id, &iface_type_name, @@ -553,7 +550,7 @@ fn same_transfer_twice_no_update_witnesses(#[case] transfer_type: TransferType) false, ); - // with TransferType::Blinded this works but should fail + // this should fail wlt_2.send( &mut wlt_1, TransferType::Blinded, @@ -564,12 +561,11 @@ fn same_transfer_twice_no_update_witnesses(#[case] transfer_type: TransferType) None, ); - // with TransferType::Blinded this shows 1900+200 as owned, but we issued 2000 wlt_1.debug_logs(contract_id, &iface_type_name, AllocationFilter::WalletAll); let mut wlt_3 = get_wallet(&DescriptorType::Wpkh); - // with TransferType::Blinded this works but should fail + // this should fail wlt_1.send( &mut wlt_3, TransferType::Blinded, @@ -584,7 +580,6 @@ fn same_transfer_twice_no_update_witnesses(#[case] transfer_type: TransferType) } #[rstest] -#[ignore = "fix needed"] // https://github.com/RGB-WG/rgb-core/issues/283 #[case(TransferType::Blinded)] #[case(TransferType::Witness)] fn same_transfer_twice_update_witnesses(#[case] transfer_type: TransferType) {