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

Commit 3e6cd78

Browse files
committed
Add fixups for Node 20
1 parent 25095df commit 3e6cd78

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-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

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const {
33
Keypair,
44
Networks,
55
SorobanDataBuilder,
6+
authorizeEntry,
67
authorizeInvocation,
78
parseRawSimulation,
89
xdr
@@ -153,8 +154,6 @@ describe('Server#simulateTransaction', async function (done) {
153154
});
154155

155156
xit('simulates fee bump transactions');
156-
157-
done();
158157
});
159158

160159
function cloneSimulation(sim) {
@@ -195,10 +194,10 @@ async function buildAuthEntry(address) {
195194

196195
// do some voodoo to make this return a deterministic auth entry
197196
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
197+
return authorizeInvocation(kp, 1, root).then((entry) => {
198+
entry.credentials().address().nonce(new xdr.Int64(0xdeadbeef));
199+
return authorizeEntry(entry, kp, 1); // overwrites signature w/ above nonce
200+
});
202201
}
203202

204203
async function invokeSimulationResponse(address) {

0 commit comments

Comments
 (0)