Skip to content

Commit

Permalink
fixed unit test of TransactionManifestTest
Browse files Browse the repository at this point in the history
  • Loading branch information
giannis-rdx committed Sep 25, 2024
1 parent 8ff7310 commit c446600
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -584,15 +584,15 @@ class TransactionManifestTest : SampleTestable<TransactionManifest> {

@Test
fun test_execution_summary() {
val name = "transfer_1to2_multiple_nf_and_f_tokens"
val name = "third_party_deposits_update"
val receipt = engineToolkitReceipt(name)
val manifest = manifest(name)

val summary = manifest.executionSummary(engineToolkitReceipt = receipt)
assertEquals(
listOf(
AccountAddress.init(
"account_tdx_2_1288efhmjt8kzce77par4ex997x2zgnlv5qqv9ltpxqg7ur0xpqm6gk"
"account_tdx_2_129uv9r46an4hwng8wc97qwpraspvnrc7v2farne4lr6ff7yaevaz2a"
)
),
summary.addressesOfAccountsRequiringAuth
Expand Down Expand Up @@ -661,8 +661,7 @@ class TransactionManifestTest : SampleTestable<TransactionManifest> {
networkId = NetworkId.STOKENET
)

private fun engineToolkitReceipt(name: String): BagOfBytes =
openFile(name, "dat").readText().hexToBagOfBytes()
private fun engineToolkitReceipt(name: String): String = openFile(name, "dat").readText()

private fun openFile(name: String, extension: String) =
File("../../" + "crates/sargon/fixtures/transaction/$name.$extension")
Expand Down

0 comments on commit c446600

Please sign in to comment.