From c56a7e13390a420038dc163bf329a30efe1eac94 Mon Sep 17 00:00:00 2001 From: polyprogrammist Date: Sat, 13 Jan 2024 16:38:05 -0500 Subject: [PATCH] fix --- test/generated_files/generated_test.ts | 10 +++++----- test/tlb/test.tlb | 2 +- test/tlbgen.spec.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/generated_files/generated_test.ts b/test/generated_files/generated_test.ts index d963b8a..492faad 100644 --- a/test/generated_files/generated_test.ts +++ b/test/generated_files/generated_test.ts @@ -758,11 +758,11 @@ export interface HashmapExprKey { readonly x: Dictionary; } -// a$_ x:(HashmapVarKey 5) = HashmapExprKeyUser; +// a$_ x:(HashmapExprKey 5) = HashmapExprKeyUser; export interface HashmapExprKeyUser { readonly kind: 'HashmapExprKeyUser'; - readonly x: HashmapVarKey; + readonly x: HashmapExprKey; } // tmpa$_ a:# b:# = Simple; @@ -3105,10 +3105,10 @@ export function storeHashmapExprKey(hashmapExprKey: HashmapExprKey): (builder: B } -// a$_ x:(HashmapVarKey 5) = HashmapExprKeyUser; +// a$_ x:(HashmapExprKey 5) = HashmapExprKeyUser; export function loadHashmapExprKeyUser(slice: Slice): HashmapExprKeyUser { - let x: HashmapVarKey = loadHashmapVarKey(slice, 5); + let x: HashmapExprKey = loadHashmapExprKey(slice, 5); return { kind: 'HashmapExprKeyUser', x: x, @@ -3118,7 +3118,7 @@ export function loadHashmapExprKeyUser(slice: Slice): HashmapExprKeyUser { export function storeHashmapExprKeyUser(hashmapExprKeyUser: HashmapExprKeyUser): (builder: Builder) => void { return ((builder: Builder) => { - storeHashmapVarKey(hashmapExprKeyUser.x)(builder); + storeHashmapExprKey(hashmapExprKeyUser.x)(builder); }) } diff --git a/test/tlb/test.tlb b/test/tlb/test.tlb index 5c361c3..db8eaaf 100644 --- a/test/tlb/test.tlb +++ b/test/tlb/test.tlb @@ -165,6 +165,6 @@ a$_ x:(HashmapE 100 ^TypedParam) = HashmapTPCell; a$_ {n:#} x:(HashmapE n uint5) = HashmapVarKey n; a$_ x:(HashmapVarKey 5) = HashmapVarKeyUser; a$_ {n:#} x:(HashmapE (n+2) uint5) = HashmapExprKey n; -a$_ x:(HashmapVarKey 5) = HashmapExprKeyUser; +a$_ x:(HashmapExprKey 5) = HashmapExprKeyUser; //a$_ {A: Type} x:(HashmapE 200 (OneComb A)) = HashmapOneComb A; //a$_ x:(HashmapOneComb uint5) = HashmapOneCombUser; \ No newline at end of file diff --git a/test/tlbgen.spec.ts b/test/tlbgen.spec.ts index 6ba2740..cf0e0fc 100644 --- a/test/tlbgen.spec.ts +++ b/test/tlbgen.spec.ts @@ -247,7 +247,7 @@ describe('Generating tlb code', () => { let hashmapVarKeyUser: HashmapVarKeyUser = { kind: 'HashmapVarKeyUser', x: {kind: 'HashmapVarKey', n: 5, x: vkDict }} checkSameOnStoreLoad(hashmapVarKeyUser, loadHashmapVarKeyUser, storeHashmapVarKeyUser); - let hashmapExprKeyUser: HashmapExprKeyUser = { kind: 'HashmapExprKeyUser', x: {kind: 'HashmapVarKey', n: 5, x: vkDict }} + let hashmapExprKeyUser: HashmapExprKeyUser = { kind: 'HashmapExprKeyUser', x: {kind: 'HashmapExprKey', n: 5, x: vkDict }} checkSameOnStoreLoad(hashmapExprKeyUser, loadHashmapExprKeyUser, storeHashmapExprKeyUser); })