From 2165b35c085d761d0996d7a47877e8d85d1d9eb9 Mon Sep 17 00:00:00 2001 From: 100k Date: Tue, 30 Apr 2024 07:23:47 +0200 Subject: [PATCH] Update options.ts Register SpCoreSr25519Public to fix error ``` Error: createType(SpCoreSr25519Public):: DoNotConstruct: Cannot construct unknown type SpCoreSr25519Public ``` --- frontend/packages/sdk/src/options.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/packages/sdk/src/options.ts b/frontend/packages/sdk/src/options.ts index ddf761b1c6..183347f301 100644 --- a/frontend/packages/sdk/src/options.ts +++ b/frontend/packages/sdk/src/options.ts @@ -6,6 +6,7 @@ import SubstrateLookupTypes from '@polkadot/types-augment/lookup/substrate' export const types = { ContractId: 'H256', EcdhPublicKey: 'SpCoreSr25519Public', + SpCoreSr25519Public: '[u8; 32]', ContractQueryHead: { id: 'ContractId', nonce: '[u8; 32]',