Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyProgrammist committed Jan 13, 2024
1 parent 6b2256b commit c56a7e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions test/generated_files/generated_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -758,11 +758,11 @@ export interface HashmapExprKey {
readonly x: Dictionary<bigint, number>;
}

// 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;
Expand Down Expand Up @@ -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,
Expand All @@ -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);
})

}
Expand Down
2 changes: 1 addition & 1 deletion test/tlb/test.tlb
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion test/tlbgen.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})

Expand Down

0 comments on commit c56a7e1

Please sign in to comment.