Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 47327aa

Browse files
committed
Add fixups for Node 20
1 parent 25095df commit 47327aa

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
max-parallel: 4
1515
matrix:
16-
node-version: [16, 18, 20]
16+
node-version: [18, 20]
1717

1818
steps:
1919
- name: Checkout

test/unit/server/simulate_transaction_test.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ describe('Server#simulateTransaction', async function (done) {
153153
});
154154

155155
xit('simulates fee bump transactions');
156-
157-
done();
158156
});
159157

160158
function cloneSimulation(sim) {
@@ -195,10 +193,10 @@ async function buildAuthEntry(address) {
195193

196194
// do some voodoo to make this return a deterministic auth entry
197195
const kp = Keypair.fromSecret(randomSecret);
198-
let entry = authorizeInvocation(kp, 1, root);
199-
entry.credentials().address().nonce(new xdr.Int64(0xdeadbeef));
200-
201-
return authorizeEntry(entry, kp, 1); // overwrites signature w/ above nonce
196+
return authorizeInvocation(kp, 1, root).then(entry => {
197+
entry.credentials().address().nonce(new xdr.Int64(0xdeadbeef));
198+
return authorizeEntry(entry, kp, 1); // overwrites signature w/ above nonce
199+
});
202200
}
203201

204202
async function invokeSimulationResponse(address) {

0 commit comments

Comments
 (0)