From 2ab1b5a3ed1c607993daae047d55aed39339c2f3 Mon Sep 17 00:00:00 2001 From: LukasDeco Date: Mon, 19 Aug 2024 09:49:51 -0600 Subject: [PATCH 1/3] fix: build main tag on main --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b65ffcd8..560fdeee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: themetadao/indexer + images: themetadao/indexer:main - name: Build and push Docker image uses: docker/build-push-action@v4 From d2de61ef35df13f3724573929427fb72ebcba764 Mon Sep 17 00:00:00 2001 From: LukasDeco Date: Mon, 19 Aug 2024 10:06:00 -0600 Subject: [PATCH 2/3] fix: build main tag for real --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 560fdeee..0ec92d1b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: themetadao/indexer:main + images: themetadao/indexer - name: Build and push Docker image uses: docker/build-push-action@v4 @@ -32,7 +32,7 @@ jobs: context: . file: packages/indexer/Dockerfile push: true - tags: ${{ steps.meta.outputs.tags }} + tags: themetadao/indexer:main labels: ${{ steps.meta.outputs.labels }} redeploy_app: From 7eaf1fed8bfc839bcd3502a26c9be328ea1b2bfe Mon Sep 17 00:00:00 2001 From: LukasDeco Date: Mon, 19 Aug 2024 10:13:39 -0600 Subject: [PATCH 3/3] fix: uncaught-tx-serializer-error --- packages/indexer/src/transaction/serializer.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/indexer/src/transaction/serializer.ts b/packages/indexer/src/transaction/serializer.ts index ea68ca3c..68bf9e75 100644 --- a/packages/indexer/src/transaction/serializer.ts +++ b/packages/indexer/src/transaction/serializer.ts @@ -18,6 +18,7 @@ import { InstructionDisplay, Instruction as AnchorInstruction, } from "@coral-xyz/anchor/dist/cjs/coder/borsh/instruction"; +import { logger } from "../logger"; /** * This version should be bumped every time we update this file. @@ -401,13 +402,17 @@ function getIxWithDisplay( }; } }); + try { + const ixDisplay = coder.format(decodedIx, accounts); - const ixDisplay = coder.format(decodedIx, accounts); - - return { - instruction: decodedIx, - instructionDisplay: ixDisplay, - }; + return { + instruction: decodedIx, + instructionDisplay: ixDisplay, + }; + } catch (e) { + logger.error("error with coder formatting of decodedIx:", e); + return null; + } } function flattenIdlAccounts(