Skip to content

Commit

Permalink
Merge pull request ton-org#38 from RedDuck-Software/master
Browse files Browse the repository at this point in the history
Support for `tvm.stackEntryList`
  • Loading branch information
dvlkv authored May 31, 2024
2 parents a142d71 + 8fbbf74 commit 58d490f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/TonClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ function parseStackEntry(s: any): TupleItem {
return { type: 'cell', cell: Cell.fromBase64(s.cell) };
case 'tvm.stackEntryTuple':
return { type: 'tuple', items: s.tuple.elements.map(parseStackEntry) };
case 'tvm.stackEntryList':
return { type: 'list', items: s.list.elements.map(parseStackEntry) }
default:
throw Error("Unsupported item type: " + s["@type"]);
}
Expand Down

0 comments on commit 58d490f

Please sign in to comment.