Skip to content

Commit

Permalink
Merge pull request #302 from logion-network/feature/hotfix-spolia-amoy
Browse files Browse the repository at this point in the history
Handle Sepolia and Amoy
  • Loading branch information
gdethier authored May 8, 2024
2 parents 44b915a + 41ff151 commit 42b51e5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@logion/rest-api-core": "^0.5.0",
"@polkadot/api-contract": "^10.12.4",
"@polkadot/wasm-crypto": "^7.3.2",
"alchemy-sdk": "^3.2.0",
"alchemy-sdk": "^3.3.0",
"ansi-regex": "^6.0.1",
"axios": "^1.3.2",
"body-parser": "^1.20.1",
Expand Down
4 changes: 2 additions & 2 deletions src/logion/services/ownership/alchemy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export class AlchemyService {
constructor(factory: AlchemyFactory) {
this.apiKeys = {};
if(process.env.GOERLI_ALCHEMY_KEY) {
this.apiKeys[Network.ETH_GOERLI] = process.env.GOERLI_ALCHEMY_KEY;
this.apiKeys[Network.ETH_SEPOLIA] = process.env.GOERLI_ALCHEMY_KEY;
}
if(process.env.ETHEREUM_ALCHEMY_KEY) {
this.apiKeys[Network.ETH_MAINNET] = process.env.ETHEREUM_ALCHEMY_KEY;
}
if(process.env.POLYGON_MUMBAI_ALCHEMY_KEY) {
this.apiKeys[Network.MATIC_MUMBAI] = process.env.POLYGON_MUMBAI_ALCHEMY_KEY;
this.apiKeys[Network.MATIC_AMOY] = process.env.POLYGON_MUMBAI_ALCHEMY_KEY;
}
if(process.env.POLYGON_MAINNET_ALCHEMY_KEY) {
this.apiKeys[Network.MATIC_MAINNET] = process.env.POLYGON_MAINNET_ALCHEMY_KEY;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/services/ownership/alchemy.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function buildAlchemyService(): AlchemyService {
return new AlchemyService(factoryMock.object());
}

const expectedNetwork = Network.ETH_GOERLI;
const expectedNetwork = Network.ETH_SEPOLIA;
const expectedApiKey = "dMRDl5c9KAkuURTKjYgVN5DN06IBRfZG";
const expectedContractAddress = "0x765df6da33c1ec1f83be42db171d7ee334a46df5";
const expectedTokenId = "4391";
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2735,9 +2735,9 @@ __metadata:
languageName: node
linkType: hard

"alchemy-sdk@npm:^3.2.0":
version: 3.2.0
resolution: "alchemy-sdk@npm:3.2.0"
"alchemy-sdk@npm:^3.3.0":
version: 3.3.0
resolution: "alchemy-sdk@npm:3.3.0"
dependencies:
"@ethersproject/abi": ^5.7.0
"@ethersproject/abstract-provider": ^5.7.0
Expand All @@ -2753,7 +2753,7 @@ __metadata:
axios: ^1.6.5
sturdy-websocket: ^0.2.1
websocket: ^1.0.34
checksum: 90eff795b8d57bcf15292e92ed9997bd67fa000caecd407b0fc3c144b9808e3a8364546e5be549dcca121de101e2511064ebe1670d6b99edfa77475ddd6dc400
checksum: 4628741ffe27d30ac473529e43fb4cad49916c8ad01bfc2887b3111de7aa9866298efe8b0e1050671b6ffb8edeb90de8a815e8ed4d4bf5c27c43380658f28e10
languageName: node
linkType: hard

Expand Down Expand Up @@ -6752,7 +6752,7 @@ __metadata:
"@types/uuid": ^8.3.4
"@typescript-eslint/eslint-plugin": ^6.9.1
"@typescript-eslint/parser": ^6.9.1
alchemy-sdk: ^3.2.0
alchemy-sdk: ^3.3.0
ansi-regex: ^6.0.1
axios: ^1.3.2
body-parser: ^1.20.1
Expand Down

0 comments on commit 42b51e5

Please sign in to comment.