Skip to content

Commit 2d31f56

Browse files
committed
fix: l1 retryable ticket issues, slight version bump due to deploy issues
1 parent 9509806 commit 2d31f56

File tree

3 files changed

+828
-224
lines changed

3 files changed

+828
-224
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"prepublishOnly": "yarn & yarn build:ipfs",
1414
"build": "graph build",
1515
"build:ipfs:mainnet": "yarn && yarn prepare:mainnet && graph build --ipfs https://ipfs.network.thegraph.com",
16-
"deploy-mainnet": "yarn && yarn prepare:mainnet && graph deploy --studio graph-network-ethereum",
17-
"deploy-arbitrum": "yarn && yarn prepare:arbitrum && graph deploy --studio graph-network-arbitrum",
18-
"deploy-sepolia": "yarn && yarn prepare:sepolia && graph deploy --studio graph-network-sepolia",
19-
"deploy-arbitrum-sepolia": "yarn && yarn prepare:arbitrum-sepolia && graph deploy --studio graph-network-arbitrum-sepolia",
16+
"deploy-mainnet": "yarn && yarn prepare:mainnet && graph deploy graph-network-ethereum",
17+
"deploy-arbitrum": "yarn && yarn prepare:arbitrum && graph deploy graph-network-arbitrum",
18+
"deploy-sepolia": "yarn && yarn prepare:sepolia && graph deploy graph-network-sepolia",
19+
"deploy-arbitrum-sepolia": "yarn && yarn prepare:arbitrum-sepolia && graph deploy graph-network-arbitrum-sepolia",
2020
"deploy-studio": "yarn deploy-mainnet && yarn deploy-arbitrum && yarn deploy-sepolia && yarn deploy-arbitrum-sepolia",
2121
"prep:addresses:sepolia": "ts-node config/sepoliaAddressScript.ts && mustache ./config/generatedAddresses.json ./config/addresses.template.ts > ./config/addresses.ts",
2222
"prepare:sepolia": "yarn prep:addresses:sepolia && mustache ./config/generatedAddresses.json subgraph.template.yaml > subgraph.yaml && graph codegen --output-dir src/types/",
@@ -42,7 +42,7 @@
4242
},
4343
"devDependencies": {
4444
"@graphprotocol/contracts": "6.2.0",
45-
"@graphprotocol/graph-cli": "0.68.5",
45+
"@graphprotocol/graph-cli": "0.90.0",
4646
"@graphprotocol/graph-ts": "0.32.0",
4747
"@types/node": "^14.0.13",
4848
"@typescript-eslint/eslint-plugin": "^3.3.0",

src/mappings/helpers/event-log.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export function getDataFromEventLog(
2020
for (let i = 0; i < logs.length; i++) {
2121
let topics = logs[i].topics;
2222

23-
if (isEventLog(topics[0], eventSignature)) {
23+
// Check if topics array has at least one element before accessing topics[0]
24+
if (topics.length > 0 && isEventLog(topics[0], eventSignature)) {
2425
eventCount = eventCount + 1;
2526
eventData = logs[i].data;
2627
}

0 commit comments

Comments
 (0)