Skip to content

Commit 32d9f65

Browse files
committed
test: createLegacyTx is no longer async
1 parent 8f09241 commit 32d9f65

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/lex-sort.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,7 @@ Zora.test("legacyCreateTx uses lex sort functions", async function (t) {
179179

180180
let changeOutput = {};
181181

182-
await DashTx.legacyCreateTx(inputs, outputs, changeOutput)
183-
.then(function (txInfo) {
184-
t.deepEqual(sortedIn, txInfo.inputs, "inputs should be sorted");
185-
t.deepEqual(sortedOut, txInfo.outputs, "outputs should be sorted");
186-
})
187-
.catch(function (e) {
188-
t.ok(false, e.message);
189-
});
182+
let txInfo = DashTx.legacyCreateTx(inputs, outputs, changeOutput);
183+
t.deepEqual(sortedIn, txInfo.inputs, "inputs should be sorted");
184+
t.deepEqual(sortedOut, txInfo.outputs, "outputs should be sorted");
190185
});

0 commit comments

Comments
 (0)