diff --git a/src/rpc/response.ts b/src/rpc/response.ts index 0dbb75ea3..b8f2144e8 100644 --- a/src/rpc/response.ts +++ b/src/rpc/response.ts @@ -94,10 +94,10 @@ export class RpcAddressableEntity { @jsonMember({ name: 'entity', constructor: RpcAddressableEntity }) entity: RpcAddressableEntity; - @jsonMember({ name: 'named_keys', constructor: NamedKey }) + @jsonArrayMember(NamedKey, { name: 'named_keys' }) namedKeys: NamedKey[]; - @jsonMember({ name: 'entry_points', constructor: EntryPointValue }) + @jsonArrayMember(EntryPointValue, { name: 'entry_points' }) entryPoints?: EntryPointValue[]; } diff --git a/src/types/key/EntryPointAddr.ts b/src/types/key/EntryPointAddr.ts index 68f8b9dbf..b2e59b8a9 100644 --- a/src/types/key/EntryPointAddr.ts +++ b/src/types/key/EntryPointAddr.ts @@ -1,4 +1,4 @@ -import { jsonArrayMember, jsonMember, jsonObject } from 'typedjson'; +import { jsonMember, jsonObject } from 'typedjson'; import { concat } from '@ethersproject/bytes'; import { EntityAddr } from './EntityAddr'; @@ -57,7 +57,7 @@ class VmCasperV1 { }) entityAddr: EntityAddr; - @jsonArrayMember(Uint8Array, { name: 'NameBytes' }) + @jsonMember(Uint8Array, { name: 'NameBytes' }) nameBytes: Uint8Array; constructor(entityAddr: EntityAddr, nameBytes: Uint8Array) { diff --git a/src/types/key/URef.ts b/src/types/key/URef.ts index d265ff1ea..660f8d7c1 100644 --- a/src/types/key/URef.ts +++ b/src/types/key/URef.ts @@ -1,4 +1,4 @@ -import { jsonObject, jsonMember, jsonArrayMember } from 'typedjson'; +import { jsonObject, jsonMember } from 'typedjson'; import { IResultWithBytes } from '../clvalue'; import { Conversions } from '../Conversions'; import { concat } from '@ethersproject/bytes'; @@ -34,7 +34,7 @@ export const ByteHashLen = 32; @jsonObject export class URef { /** The unique data (hash) associated with the URef, represented as a 32-byte array. */ - @jsonArrayMember(Number) + @jsonMember(Uint8Array) data: Uint8Array; /** The access permissions assigned to this URef, defined by the `UrefAccess` enum. */