Skip to content

Commit

Permalink
fix: update topos endpoint env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan committed Nov 2, 2023
1 parent 3cd60f6 commit a60275d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AUTH0_AUDIENCE=
AUTH0_ISSUER_URL=
REDIS_HOST=
REDIS_PORT=
TOPOS_SUBNET_ENDPOINT=
TOPOS_SUBNET_ENDPOINT_WS=
SUBNET_REGISTRATOR_CONTRACT_ADDRESS=
TOPOS_CORE_PROXY_CONTRACT_ADDRESS=
TRACING_SERVICE_NAME=
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ AUTH0_AUDIENCE=
AUTH0_ISSUER_URL=
REDIS_HOST=
REDIS_PORT=
TOPOS_SUBNET_ENDPOINT=
TOPOS_SUBNET_ENDPOINT_WS=
SUBNET_REGISTRATOR_CONTRACT_ADDRESS=
TOPOS_CORE_PROXY_CONTRACT_ADDRESS=
ERC20_MESSAGING_CONTRACT_ADDRESS=
Expand Down
8 changes: 4 additions & 4 deletions src/execute/execute.processor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const VALID_PRIVATE_KEY =
'0xc6cbd7d76bc5baca530c875663711b947efa6a86a900a9e8645ce32e5821484e'
const TOPOS_CORE_PROXY_CONTRACT_ADDRESS =
'0x1D7b9f9b1FF6cf0A3BEB0F84fA6F8628E540E97F'
const TOPOS_SUBNET_ENDPOINT = 'ws://topos-subnet-endpoint/ws'
const TOPOS_SUBNET_ENDPOINT_WS = 'ws://topos-subnet-endpoint/ws'

const validExecuteJob: Partial<Job<ExecuteDto & TracingOptions>> = {
data: {
Expand Down Expand Up @@ -57,8 +57,8 @@ describe('ExecuteProcessor', () => {
return VALID_PRIVATE_KEY
case 'TOPOS_CORE_PROXY_CONTRACT_ADDRESS':
return TOPOS_CORE_PROXY_CONTRACT_ADDRESS
case 'TOPOS_SUBNET_ENDPOINT':
return TOPOS_SUBNET_ENDPOINT
case 'TOPOS_SUBNET_ENDPOINT_WS':
return TOPOS_SUBNET_ENDPOINT_WS
}
}),
}
Expand Down Expand Up @@ -97,7 +97,7 @@ describe('ExecuteProcessor', () => {
validExecuteJob as unknown as Job<ExecuteDto & TracingOptions>
)

expect(ethersProviderMock).toHaveBeenCalledWith(TOPOS_SUBNET_ENDPOINT)
expect(ethersProviderMock).toHaveBeenCalledWith(TOPOS_SUBNET_ENDPOINT_WS)
expect(ethersProviderMock).toHaveBeenCalledWith(subnetMock.endpointWs)
expect(ethersWalletMock).toHaveBeenCalledWith(
VALID_PRIVATE_KEY,
Expand Down
2 changes: 1 addition & 1 deletion src/execute/execute.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class ExecutionProcessorV1 {

private async _getReceivingSubnetEndpointFromId(subnetId: string) {
const toposSubnetEndpoint = this.configService.get<string>(
'TOPOS_SUBNET_ENDPOINT'
'TOPOS_SUBNET_ENDPOINT_WS'
)
const toposCoreContractAddress = this.configService.get<string>(
'TOPOS_CORE_PROXY_CONTRACT_ADDRESS'
Expand Down

0 comments on commit a60275d

Please sign in to comment.