Skip to content

Commit 7594045

Browse files
committed
fix: detect last type name from schema
1 parent 2014ea4 commit 7594045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tlb-runtime/TLBRuntime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class TLBRuntime<T extends ParsedCell = ParsedCell> {
8888
const tree = ast(tlbSource);
8989
const code = getTLBCodeByAST(tree, tlbSource);
9090
const pared = tlbSource.split('=');
91-
const lastTypeName = pared[pared.length - 1].split(';')[0].trim();
91+
const lastTypeName = pared[pared.length - 1].split(';')[0].trim().split(' ')[0].trim();
9292
if (lastTypeName) {
9393
return {
9494
ok: true,

0 commit comments

Comments
 (0)