Skip to content

Commit

Permalink
Merge branch 'stable' into update-schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Nov 30, 2023
2 parents 6b9e2a8 + 03cff76 commit e0520e6
Show file tree
Hide file tree
Showing 6 changed files with 250 additions and 252 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
ref: master
path: js-stellar-base

- name: Install Node 16
- name: Install Node 18
uses: actions/setup-node@v2
with:
node-version: 16
node-version: '18x'

- name: Install Dependencies
run: yarn install
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
always-auth: true

- name: Install Depencencies
run: yarn install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
node-version: [16, 18, 20]
node-version: [18, 20]

steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@babel/preset-env": "^7.23.2",
"@babel/preset-typescript": "^7.23.2",
"@babel/register": "^7.22.15",
"@definitelytyped/dtslint": "^0.0.189",
"@definitelytyped/dtslint": "^0.0.197",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/chai": "^4.3.9",
Expand Down Expand Up @@ -119,7 +119,7 @@
"karma-mocha": "^2.0.0",
"karma-sinon-chai": "^2.0.2",
"karma-webpack": "^5.0.0",
"lint-staged": "^14.0.1",
"lint-staged": "^15.1.0",
"minami": "^1.1.1",
"mocha": "^10.2.0",
"node-polyfill-webpack-plugin": "^2.0.1",
Expand Down
11 changes: 5 additions & 6 deletions test/unit/server/simulate_transaction_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const {
Networks,
SorobanDataBuilder,
authorizeInvocation,
authorizeEntry,
parseRawSimulation,
xdr
} = SorobanClient;
Expand Down Expand Up @@ -153,8 +154,6 @@ describe('Server#simulateTransaction', async function (done) {
});

xit('simulates fee bump transactions');

done();
});

function cloneSimulation(sim) {
Expand Down Expand Up @@ -195,10 +194,10 @@ async function buildAuthEntry(address) {

// do some voodoo to make this return a deterministic auth entry
const kp = Keypair.fromSecret(randomSecret);
let entry = authorizeInvocation(kp, 1, root);
entry.credentials().address().nonce(new xdr.Int64(0xdeadbeef));

return authorizeEntry(entry, kp, 1); // overwrites signature w/ above nonce
return authorizeInvocation(kp, 1, root).then((entry) => {
entry.credentials().address().nonce(new xdr.Int64(0xdeadbeef));
return authorizeEntry(entry, kp, 1); // overwrites signature w/ above nonce
});
}

async function invokeSimulationResponse(address) {
Expand Down
Loading

0 comments on commit e0520e6

Please sign in to comment.