Skip to content

Commit 7d901d0

Browse files
committed
fix: rebuilt packages
1 parent 372233d commit 7d901d0

File tree

2 files changed

+0
-1713
lines changed

2 files changed

+0
-1713
lines changed

crates/algokit_transact/src/test_utils/mod.rs

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -162,48 +162,6 @@ impl TransactionMother {
162162
.to_owned()
163163
}
164164

165-
pub fn asset_freeze_real_data() -> AssetFreezeTransactionBuilder {
166-
// mainnet-2XFGVOHMFYLAWBHOSIOI67PBT5LDRHBTD3VLX5EYBDTFNVKMCJIA
167-
let sender = "E4A6FVIHXSZ3F7QXRCOTYDDILVQYEBFH56HYDIIYX4SVXS2QX5GUTBVZHY"
168-
.parse::<Address>()
169-
.unwrap();
170-
let freeze_address = "ZJU3X2B2QN3BUBIJ64JZ565V363ANGBUDOLXAJHDXGIIMYK6WV3NSNCBQQ"
171-
.parse::<Address>()
172-
.unwrap();
173-
let genesis_hash: Byte32 = BASE64_STANDARD
174-
.decode("wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=")
175-
.unwrap()
176-
.try_into()
177-
.unwrap();
178-
let note = BASE64_STANDARD
179-
.decode("TkZUIGZyZWV6ZWQgYnkgbG9mdHkuYWk=")
180-
.unwrap();
181-
let group = BASE64_STANDARD
182-
.decode("xERjxVTlNb8jeHa16qmpxDMh4+dcDCokO69QnNESbFk=")
183-
.unwrap()
184-
.try_into()
185-
.unwrap();
186-
187-
AssetFreezeTransactionBuilder::default()
188-
.header(
189-
TransactionHeaderBuilder::default()
190-
.sender(sender)
191-
.fee(1000)
192-
.first_valid(37463562)
193-
.last_valid(37464562)
194-
.genesis_hash(genesis_hash)
195-
.genesis_id("mainnet-v1.0".to_string())
196-
.note(note)
197-
.group(group)
198-
.build()
199-
.unwrap(),
200-
)
201-
.asset_id(1707148495)
202-
.freeze_target(freeze_address)
203-
.frozen(true)
204-
.to_owned()
205-
}
206-
207165
pub fn asset_freeze() -> AssetFreezeTransactionBuilder {
208166
AssetFreezeTransactionBuilder::default()
209167
.header(TransactionHeaderMother::simple_testnet().build().unwrap())
@@ -622,15 +580,6 @@ impl TestDataMother {
622580
TransactionTestData::new(transaction, signing_private_key)
623581
}
624582

625-
pub fn asset_freeze_real_data() -> TransactionTestData {
626-
let signing_private_key: Byte32 = [
627-
2, 205, 103, 33, 67, 14, 82, 196, 115, 196, 206, 254, 50, 110, 63, 182, 149, 229, 184,
628-
216, 93, 11, 13, 99, 69, 213, 218, 165, 134, 118, 47, 44,
629-
];
630-
let transaction = TransactionMother::asset_freeze_real_data().build().unwrap();
631-
TransactionTestData::new(transaction, signing_private_key)
632-
}
633-
634583
pub fn export<F, T>(path: &std::path::Path, transform: Option<F>)
635584
where
636585
F: Fn(&TransactionTestData) -> T,
@@ -655,7 +604,6 @@ impl TestDataMother {
655604
"non_participation_key_registration": Self::non_participation_key_registration().as_json(&transform),
656605
"asset_freeze": Self::asset_freeze().as_json(&transform),
657606
"asset_unfreeze": Self::asset_unfreeze().as_json(&transform),
658-
"asset_freeze_real_data": Self::asset_freeze_real_data().as_json(&transform),
659607
}));
660608

661609
let file = File::create(path).expect("Failed to create export file");
@@ -846,13 +794,4 @@ mod tests {
846794
String::from("ACAP6ZGMGNTLUO3IQ26P22SRKYWTQQO3MF64GX7QO6NICDUFPM5A")
847795
);
848796
}
849-
850-
#[test]
851-
fn test_asset_freeze_snapshot() {
852-
let data = TestDataMother::asset_freeze_real_data();
853-
assert_eq!(
854-
data.id,
855-
String::from("2XFGVOHMFYLAWBHOSIOI67PBT5LDRHBTD3VLX5EYBDTFNVKMCJIA")
856-
);
857-
}
858797
}

0 commit comments

Comments
 (0)