Skip to content

Commit 1647c4d

Browse files
Seulgi Kimmergify[bot]
authored andcommitted
Add a test to check whether it allows zero pay transaction
1 parent 4fc7d1b commit 1647c4d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/src/e2e.long/transactions.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ describe("transactions", function() {
5151
await node.start();
5252
});
5353

54+
describe("Pay", async function() {
55+
it("Allow zero pay", async function() {
56+
const pay = await node.sendPayTx({ quantity: 0 });
57+
expect(await node.sdk.rpc.chain.containsTransaction(pay.hash())).be
58+
.true;
59+
expect(await node.sdk.rpc.chain.getTransaction(pay.hash())).not
60+
.null;
61+
});
62+
});
63+
5464
describe("AssetMint", async function() {
5565
[1, 100, U64.MAX_VALUE].forEach(function(supply) {
5666
it(`Mint successful - supply ${supply}`, async function() {

0 commit comments

Comments
 (0)