From 930f529f4ed5323172d9073eb39e8d66cf40619d Mon Sep 17 00:00:00 2001 From: Dmytro Vynnyk Date: Wed, 11 Dec 2024 13:54:28 +0100 Subject: [PATCH] Fix StepPayload.executionEffects annotations --- src/sse/event.ts | 8 ++++---- src/types/keypair/ed25519/PrivateKey.ts | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sse/event.ts b/src/sse/event.ts index 3520ededd..9fc8fa9c1 100644 --- a/src/sse/event.ts +++ b/src/sse/event.ts @@ -2,7 +2,6 @@ import { jsonObject, jsonMember, jsonArrayMember, TypedJSON } from 'typedjson'; import { Effect, - Effects, ExecutionResult, ExecutionResultV1, Deploy, @@ -17,7 +16,8 @@ import { HexBytes, Timestamp, PublicKey, - Hash + Hash, + Transform } from '../types'; export enum EventType { @@ -758,8 +758,8 @@ export class StepPayload { @jsonMember({ name: 'execution_effect', constructor: Effect }) executionEffect: Effect; - @jsonMember({ name: 'execution_effects', constructor: Effects }) - executionEffects: Effects; + @jsonArrayMember(() => Transform, { name: 'execution_effects' }) + executionEffects: Transform[]; } @jsonObject diff --git a/src/types/keypair/ed25519/PrivateKey.ts b/src/types/keypair/ed25519/PrivateKey.ts index e1fadb372..6679ff88a 100644 --- a/src/types/keypair/ed25519/PrivateKey.ts +++ b/src/types/keypair/ed25519/PrivateKey.ts @@ -1,5 +1,4 @@ import * as ed25519 from '@noble/ed25519'; -import { Buffer } from 'buffer'; /** * Interface representing the structure and methods of a private key, including