You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I write a noir function throw().
I compile my contract and generate a typescript interface.....and the interface blows up because throw() is a TS keyword!
Solution could be
TS generator will not emit any function named after a TS keyword, and emits something to the effect of WARNING: Function 'throw' not emitted as conflicts with keyword. Can be called via function index e.g.: contract["throw"]() You can call this method manually.
The text was updated successfully, but these errors were encountered:
rahul-kothari
changed the title
Handle case of writing a noir function, whose name is a TS keyword
TS generator to not emit function wrapper if noir function name is a TS keyword
Oct 24, 2023
LHerskind
changed the title
TS generator to not emit function wrapper if noir function name is a TS keyword
refactor(CircuitJs): TS generator to not emit function wrapper if noir function name is a TS keyword
Mar 9, 2024
Say I write a noir function throw().
I compile my contract and generate a typescript interface.....and the interface blows up because throw() is a TS keyword!
Solution could be
WARNING: Function 'throw' not emitted as conflicts with keyword. Can be called via function index e.g.: contract["throw"]()
You can call this method manually.The text was updated successfully, but these errors were encountered: