Skip to content

Commit

Permalink
add test for byron address output
Browse files Browse the repository at this point in the history
  • Loading branch information
twwu123 committed Dec 29, 2024
1 parent 3e3a14a commit d8218d1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/mesh-transaction/test/mesh-tx-builder/tx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,4 +626,25 @@ describe("MeshTxBuilder transactions", () => {

expect(txHex !== "").toBeTruthy();
});

it("byron output test", () => {
let mesh = new MeshTxBuilder();
let txHex = mesh
.txIn(
"2cb57168ee66b68bd04a0d595060b546edf30c04ae1031b883c9ac797967dd85",
3,
[{ unit: "lovelace", quantity: "9891607895" }],
"addr_test1vru4e2un2tq50q4rv6qzk7t8w34gjdtw3y2uzuqxzj0ldrqqactxh",
)
.txOut(
"DdzFFzCqrhswh7xiYG8RE1TtcvWamhbExTXfsCYaF9PrGWHRLCwCsBH5JkeApUagvo4FZE3DJD3rn5hw8vaMBib2StKMJ77rJHt51jPt",
[{ unit: "lovelace", quantity: "2000000" }],
)
.changeAddress(
"addr_test1vru4e2un2tq50q4rv6qzk7t8w34gjdtw3y2uzuqxzj0ldrqqactxh",
)
.completeSync();

expect(txHex !== "").toBeTruthy();
});
});

0 comments on commit d8218d1

Please sign in to comment.