Skip to content

Commit 146b1e0

Browse files
committed
update
1 parent 5be7fb0 commit 146b1e0

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"test:package": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --config jest.config.package.js",
1313
"lint:check": "eslint '{src,test}/**/*.ts' && tsc --noEmit",
1414
"lint:fix": "eslint '{src,test}/**/*.ts' --fix",
15-
"lint:ci": "eslint '{src,test}/**/*.ts' --max-warnings=0 -f json -o eslint-report.json",
16-
"anvil": "anvil --port 8545 --chain-id 90000001 & anvil --port 8546 --chain-id 90000002 & anvil --port 8547 --chain-id 90000003 & anvil --port 8548 --chain-id 90000004"
15+
"lint:ci": "eslint '{src,test}/**/*.ts' --max-warnings=0 -f json -o eslint-report.json"
1716
},
1817
"repository": {
1918
"type": "git",

src/localFunctionsTestnet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import type {
3838

3939
export const startLocalFunctionsTestnet = async (
4040
simulationConfigPath?: string,
41-
// options?: ServerOptions,
41+
// options?: CreateAnvilOptions,
4242
port = 8545,
4343
): Promise<LocalFunctionsTestnet> => {
4444
// const server = Ganache.server(options)
@@ -47,7 +47,7 @@ export const startLocalFunctionsTestnet = async (
4747
port,
4848
chainId: 90000001,
4949
startTimeout: 60000,
50-
// networkId: 90000001,
50+
// ...options,
5151
// logging: {
5252
// debug: false,
5353
// verbose: false,

test/integration/ResponseListener.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('Functions toolkit classes', () => {
1717
let allowlistedUser_A: Wallet
1818

1919
beforeAll(async () => {
20-
const testSetup = await setupLocalTestnetFixture(8548)
20+
const testSetup = await setupLocalTestnetFixture(8003)
2121
linkTokenAddress = testSetup.linkTokenAddress
2222
functionsRouterAddress = testSetup.functionsRouterAddress
2323
exampleClient = testSetup.exampleConsumer

test/integration/fetchRequestCommitment.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('fetchRequestCommitment', () => {
1414
let allowlistedUser_A: Wallet
1515

1616
beforeAll(async () => {
17-
const testSetup = await setupLocalTestnetFixture(8546)
17+
const testSetup = await setupLocalTestnetFixture(8001)
1818
donId = testSetup.donId
1919
linkTokenAddress = testSetup.linkTokenAddress
2020
functionsRouterAddress = testSetup.functionsRouterAddress
@@ -62,7 +62,7 @@ describe('fetchRequestCommitment', () => {
6262

6363
const commitment = await fetchRequestCommitment({
6464
requestId: reqId,
65-
provider: new providers.JsonRpcProvider('http://localhost:8546/'),
65+
provider: new providers.JsonRpcProvider('http://localhost:8001/'),
6666
functionsRouterAddress,
6767
donId,
6868
})
@@ -105,7 +105,7 @@ describe('fetchRequestCommitment', () => {
105105

106106
const commitment = await fetchRequestCommitment({
107107
requestId: reqId,
108-
provider: new providers.JsonRpcProvider('http://localhost:8546/'),
108+
provider: new providers.JsonRpcProvider('http://localhost:8001/'),
109109
functionsRouterAddress,
110110
donId,
111111
toBlock: 1000,
@@ -119,7 +119,7 @@ describe('fetchRequestCommitment', () => {
119119
await expect(async () => {
120120
await fetchRequestCommitment({
121121
requestId: '0xDummyRequestId',
122-
provider: new providers.JsonRpcProvider('http://localhost:8546/'),
122+
provider: new providers.JsonRpcProvider('http://localhost:8001/'),
123123
functionsRouterAddress,
124124
donId: 'invalid donId',
125125
})
@@ -132,7 +132,7 @@ describe('fetchRequestCommitment', () => {
132132
await expect(async () => {
133133
await fetchRequestCommitment({
134134
requestId: '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
135-
provider: new providers.JsonRpcProvider('http://localhost:8546/'),
135+
provider: new providers.JsonRpcProvider('http://localhost:8001/'),
136136
functionsRouterAddress,
137137
donId,
138138
})

test/integration/localFunctionsTestnet.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('Local Functions Testnet', () => {
2525
let getFunds: GetFunds
2626

2727
beforeAll(async () => {
28-
const testSetup = await setupLocalTestnetFixture(8547)
28+
const testSetup = await setupLocalTestnetFixture(8002)
2929
linkTokenAddress = testSetup.linkTokenAddress
3030
functionsRouterAddress = testSetup.functionsRouterAddress
3131
exampleClient = testSetup.exampleConsumer

test/unit/simulateScript.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ describe('simulateScript', () => {
215215

216216
const expected = {
217217
capturedTerminalOutput: '',
218-
errorString: 'attempted access to blocked resource detected',
218+
errorString: 'Requires read access to "test.txt", run again with the --allow-read flag',
219219
}
220220

221221
expect(result).toEqual(expected)

0 commit comments

Comments
 (0)